4 <script type=
"text/javascript">
7 document
.body
.appendChild(document
.createTextNode(msg
+ '\n'));
12 if (window
.testRunner
)
13 testRunner
.dumpAsText();
15 document
.addEventListener("DOMSubtreeModified", function() {
16 document
.getElementById('cont').innerHTML
= '';
19 var r
= document
.createRange();
21 r
.setStartBefore(document
.getElementById('start'));
22 r
.setEndAfter(document
.getElementById('end'));
23 var fragment
= r
.extractContents();
26 log('PASS: No crash.');
31 <body onload=
"runTests();">
33 <span>This
<span id=
"start">tests
</span></span>
34 <span>that we don't crash when mutating the dom during
</span>
35 <span>an
<code id=
"end">extractContents
</code> call.
</span>