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