Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Range / resources / detach-range-during-deletecontents-iframe.xhtml
blob7c4b8436770df0c5615dc91f6d9c8e9166df6635
1 <!DOCTYPE html>
2 <!-- This file is intentionally malformed. -->
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <script>
5 <![CDATA[
6 var done = false;
7 var range = null;
8 var f = function ()
10 range = document.createRange();
11 range.expand("sentence");
12 range.deleteContents();
14 var repeat = 0;
15 var g = function ()
17 if (done)
18 return;
19 ++repeat;
20 if (repeat >= 2) {
21 done = true;
22 document.removeEventListener("DOMSubtreeModified", listener, true);
23 window.parent.postMessage("done", "*");
24 return;
26 range.detach();
29 var firstCall = true;
30 function listener()
32 if (firstCall) {
33 firstCall = false;
34 f();
35 } else
36 g();
38 document.addEventListener("DOMSubtreeModified", listener, true);
40 document.addEventListener("DOMContentLoaded", f);
41 ]]>
42 </script>