Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / 5142012-3.html
blob7610aa52570d0aa52b7a52d5461aaa6d9931fb5c
1 <p>This tests for a bug when inserting after a link at the end of the document. Like TextEdit, we insert content outside of the link, but inserting outside of the link shouldn't cause the content to be inserted in the wrong paragraph.</p>
2 <div contenteditable="true">This paragraph should not contains links.<a href="#"><div id="div">This sentence should be a link.</div></a></div>
3 <p id="console"></p>
4 <script>
6 if (window.testRunner)
7 testRunner.dumpAsText();
9 function log(message) {
10 var console = document.getElementById("console");
11 var text = document.createTextNode(message);
12 console.appendChild(text);
15 var sel = window.getSelection();
16 var div = document.getElementById("div");
17 sel.collapse(div, div.childNodes.length);
19 document.execCommand("InsertText", false, " ");
20 document.execCommand("InsertText", false, "This sentence should not.");
22 log(div.innerHTML);
24 </script>