3 Test for
<i><a href=
"https://bugs.webkit.org/show_bug.cgi?id=19519">https://bugs.webkit.org/show_bug.cgi?id=
19519</a> DOM modification causes stack exhaustion (BUTTON OBJECT COLGROUP)
</i>.
24 for (var i
= 0; i
< tableParts
.length
; ++i
) {
25 for (var j
= 0; j
< childTypes
.length
; ++j
) {
26 document
.body
.appendChild(document
.createElement("pre")).appendChild(document
.createTextNode("Prepending " + childTypes
[j
] + " to " + tableParts
[i
] + ":"));
27 var container
= document
.createElement("div");
28 var tablePart
= document
.createElement("div");
29 tablePart
.style
.display
= tableParts
[i
];
30 container
.appendChild(tablePart
);
31 document
.body
.appendChild(container
);
32 document
.body
.offsetTop
;
33 var newChild
= document
.createElement("div");
34 newChild
.style
.display
= childTypes
[j
];
35 container
.insertBefore(newChild
, tablePart
);
36 document
.body
.offsetTop
;
37 // The above should have the same render tree as you get when
38 // you do it all at once, like this:
39 document
.body
.appendChild(container
.cloneNode(true));
40 document
.body
.offsetTop
;