From 45ba42f7110d4c6ee9730b713cb5d1eb15b82edb Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Tue, 26 Apr 2016 10:14:01 -0400 Subject: [PATCH] overzealous invariant --- dom.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom.d b/dom.d index 95a1556..321eb9e 100644 --- a/dom.d +++ b/dom.d @@ -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