Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Range / 13000.html
blobc801e3c0829484e82482b1cd8ab76126411c3871
1 <p>This tests for a bug in Range::createContextualFragment, it would fail if the range started in a text node. You should see 'The quick brown fox, jumps over the lazy dog" below.</p>
2 <div id="div" contenteditable="true">The , jumps over the lazy dog.</div>
4 <script>
5 if (window.testRunner)
6 window.testRunner.dumpAsText();
8 var div = document.getElementById("div");
9 var text = div.firstChild;
10 var sel = window.getSelection();
12 sel.collapse(text, 4);
13 var range = sel.getRangeAt(0);
14 var html = "quick brown fox";
15 var frag = range.createContextualFragment(html);
16 range.insertNode(frag);
17 </script>