4 <script src=
"../../resources/dump-as-markup.js"></script>
7 <div id=
"editorcontainer" contenteditable=
"true">
9 <div contenteditable=
"false">
10 over this contenteditable=false div
16 Markup
.description('formatblock on selection with a contenteditable="false" child.');
18 var selection
= window
.getSelection();
19 selection
.removeAllRanges();
21 var container
= document
.getElementById('editorcontainer');
22 var range
= document
.createRange()
23 range
.setStartBefore(container
.firstChild
);
24 range
.setEndAfter(container
.lastChild
);
25 selection
.addRange(range
);
27 document
.execCommand('italic', false, "");
28 document
.execCommand('formatblock', false, "<h1>");
30 Markup
.dump(container
);