4 <script src=
"../../resources/dump-as-markup.js"></script>
5 <div id=
"test" style=
"border:1px solid black" contenteditable=
"true">
6 <p id=
"item1">Make Pre
</p>
8 <div>Foo
<br><span id=
"item2">Make h1
</span><br>baz
</div>
10 <address id=
"item3">Attempt to apply the current formatting here
</address>
13 if (window
.testRunner
)
14 testRunner
.dumpEditingCallbacks();
16 Markup
.description("This test uses FormatBlock to modify three of the paragraphs below");
17 Markup
.dump("test", "Before FormatBlock");
19 var s
= window
.getSelection();
20 var r
= document
.createRange();
21 var p1
= document
.getElementById("item1");
22 var p2
= document
.getElementById("item2");
23 var p3
= document
.getElementById("item3");
25 document
.execCommand("FormatBlock", false, "pre");
27 document
.execCommand("FormatBlock", false, "h1");
29 document
.execCommand("FormatBlock", false, "address");
31 Markup
.dump("test", "After FormatBlock");