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>
9 <script src=
"../../resources/dump-as-markup.js"></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');