2 <script src=
"../../resources/testharness.js"></script>
3 <script src=
"../../resources/testharnessreport.js"></script>
4 <pre id=
"sample" contenteditable=
"true">
6 <div contenteditable=
"false">bar
13 var container
= document
.getElementById('sample');
14 var range
= document
.createRange()
15 range
.setEndAfter(container
.lastChild
);
16 window
.getSelection().addRange(range
);
17 document
.execCommand('formatblock', false, '<h1>');