Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Range / range-extractContents.html
blob06ce2884f3a5f483c994ede443d473b6bb56fc8d
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script type="text/javascript">
5 function log(msg)
7 document.body.appendChild(document.createTextNode(msg + '\n'));
10 function runTests()
12 if (window.testRunner)
13 testRunner.dumpAsText();
15 document.addEventListener("DOMSubtreeModified", function() {
16 document.getElementById('cont').innerHTML = '';
17 }, false);
19 var r = document.createRange();
20 try {
21 r.setStartBefore(document.getElementById('start'));
22 r.setEndAfter(document.getElementById('end'));
23 var fragment = r.extractContents();
24 } catch(e) {
26 log('PASS: No crash.');
29 </script>
30 </head>
31 <body onload="runTests();">
32 <p id="cont">
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>
36 </p>
37 </body>
38 </html>