From d503ac5011a615a76c2a994df93b40d38115569c Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Mon, 20 Mar 2017 11:09:19 -0400 Subject: [PATCH] version out too strict useless test --- dom.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dom.d b/dom.d index 5bfaa56..e6c7880 100644 --- a/dom.d +++ b/dom.d @@ -2652,6 +2652,8 @@ class Element { } out (ret) { assert(e.children.length == 0); + // all the parentNode is this checks fail because DocumentFragments do not appear in the parent tree, they are invisible... + version(none) debug foreach(child; ret) { assert(child.parentNode is this); assert(child.parentDocument is this.parentDocument); @@ -2675,7 +2677,7 @@ class Element { } } - auto ret = e.children.dup; + auto ret = e.children[]; e.children.length = 0; return ret;