2 if (window
.testRunner
) {
3 testRunner
.dumpEditingCallbacks();
4 testRunner
.dumpAsText();
7 <p>This is a test for execCommand(
"RemoveFormat"). You should see Some%
20text before and after RemoveFormat is executed. This test case is due to the WebKit bug
14062, regression (r21212).
</p>
8 <div id=
"div"><span id=
"test">Some text.
</span></div>
9 <p>Before:
<span id=
"console1"></span></p>
10 <p>After:
<span id=
"console2"></span></p>
14 function log(message
, k
) {
15 var console
= document
.getElementById("console"+k
);
16 var text
= document
.createTextNode(message
);
18 console
.appendChild(text
);
21 var e
= document
.getElementById("test");
22 var s
= window
.getSelection();
24 log(escape(e
.innerHTML
),1);
26 r
= document
.createRange();
29 document
.designMode
= 'on';
30 document
.execCommand("RemoveFormat", false, "");
32 log(escape(e
.innerHTML
),2);