Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / pasting-into-h6-should-not-nest-h6.html
bloba29fefeecd7324a2ae8e0c10aef783f5f3439d60
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p id="description">This tests inserting h6 inside h6 doesn't end up in a nested h6'es.
5 All three lines should be of the same font size. Each line should be of the said color.</p>
6 <div id="editor" style="border: 1px solid black;" contenteditable>
7 <h6 id="target" style="color: blue">Blue Line 1<br><br>Blue Line 2</h6>
8 </div>
9 <script src="../../resources/dump-as-markup.js"></script>
10 <script>
12 Markup.description(document.getElementById('description').textContent);
14 var target = document.getElementById('target');
15 getSelection().collapse(target, 2);
16 document.execCommand('InsertHTML', false, '<h6>Black Line</h6>');
18 Markup.dump('editor', 'After paste');
20 editor.innerHTML = editor.innerHTML;
21 Markup.dump('editor', 'After innerHTML = innerHTML');
23 </script>
24 </body>
25 </html>