1 description('Test that the HTML parser does not allow the nesting depth of elements to exceed 512.');
6 for (i
= 0; i
< depth
; ++i
)
7 markup
+= "<div id='d" + i
+ "'>";
8 var doc
= document
.implementation
.createHTMLDocument();
9 doc
.body
.innerHTML
= markup
;
11 var d510
= doc
.getElementById("d510");
12 var d511
= doc
.getElementById("d511");
13 var d512
= doc
.getElementById("d512");
15 shouldBe("d512.parentNode === d510", "true");
16 shouldBe("d511.parentNode === d510", "true");
17 shouldBe("d512.previousSibling === d511", "true");