overzealous invariant

This commit is contained in:
Adam D. Ruppe 2016-04-26 10:14:01 -04:00
parent 8a7886a63d
commit 45ba42f711
1 changed files with 1 additions and 1 deletions

2
dom.d
View File

@ -2989,7 +2989,7 @@ class Element {
assert(child !is null);
assert(child.parentNode is this, format("%s is not a parent of %s (it thought it was %s)", tagName, child.tagName, child.parentNode is null ? "null" : child.parentNode.tagName));
assert(child !is this);
assert(child !is parentNode);
//assert(child !is parentNode);
}
/+ // only depend on parentNode's accuracy if you shuffle things around and use the top elements - where the contracts guarantee it on out