mirror of https://github.com/adamdruppe/arsd.git
version out too strict useless test
This commit is contained in:
parent
8bad265aa1
commit
d503ac5011
4
dom.d
4
dom.d
|
@ -2652,6 +2652,8 @@ class Element {
|
||||||
}
|
}
|
||||||
out (ret) {
|
out (ret) {
|
||||||
assert(e.children.length == 0);
|
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) {
|
debug foreach(child; ret) {
|
||||||
assert(child.parentNode is this);
|
assert(child.parentNode is this);
|
||||||
assert(child.parentDocument is this.parentDocument);
|
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;
|
e.children.length = 0;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue