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>
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);