Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / bad-placeholder.html
blob4185bcc795a25a41f3424965c97d47192cd2cb04
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This is a test to make sure that a placeholder, even one without our special class on it, is removed only when it has been collapsed away or when it has been displaced by pasted content.</p>
6 <p>Placeholders with our special class can, through bugs in deletion, be inserted into the document unnecessarily. Once that happens, we don't want to make matters worse by removing them if they are acting as line breaks instead of placeholders.</p>
7 <div id="test" contenteditable="true">First<br class='webkit-block-placeholder'>Second paragraph.</div>
9 <script>
10 if (window.internals)
11 internals.settings.setEditingBehavior("mac");
12 var s = window.getSelection();
13 var e = document.getElementById("test");
15 s.collapse(e, 0);
16 s.modify("move", "forward", "word");
17 document.execCommand("InsertHTML", false, " paragraph.");
18 </script>