1 <div id=
"description">This tests deleting a bold paragraph, then changing the selection and moving it back to the spot
2 where that paragraph was deleted and typing more. The new test should not be bolded.
</div>
3 <div id=
"edit1" contentEditable=
"true"><div id=
"one"><b>Bold
</b><br></div><div id=
"two"><br></div></div>
4 <script src=
"../../resources/dump-as-markup.js"></script>
6 Markup
.description(document
.getElementById('description').textContent
);
8 one
= document
.getElementById("one");
9 window
.getSelection().setBaseAndExtent(one
, 0, one
, one
.childNodes
.length
);
10 document
.execCommand("Delete");
12 window
.getSelection().modify("move", "forward", "character");
13 window
.getSelection().modify("move", "backward", "character");
15 document
.execCommand("InsertText", false, "Not bold");
17 Markup
.dump(document
.getElementById('edit1'));