4 <p id=
"description">This tests inserting a text in the middle of a text node. You should see
"1 Two 3" below.
</p>
5 <pre id=
"test" contentEditable=
"true" style=
"border:1px solid black">
8 <script src=
"../../resources/dump-as-markup.js"></script>
10 getSelection().selectAllChildren(document
.querySelector('i'));
11 var text
= document
.querySelector('i').firstChild
;
12 getSelection().setBaseAndExtent(text
, 0, text
, 1);
13 document
.execCommand('InsertHtml', false, 'Two');
15 Markup
.description(document
.getElementById('description').textContent
);