4 <script src=
"../../resources/js-test.js"></script>
11 if (window
.testRunner
) {
12 testRunner
.dumpAsText();
13 testRunner
.waitUntilDone();
16 function onDOMNodeRemoved(e
) {
17 if (!(e
.srcElement
instanceof Element
))
20 e
.srcElement
.insertAdjacentHTML('afterbegin', ' ');
21 document
.execCommand('FontSizeDelta', false, '1px');
24 document
.addEventListener("DOMNodeRemoved", onDOMNodeRemoved
, false);
25 document
.designMode
= "on";
26 document
.execCommand("SelectAll", false)
27 var unknown
= document
.getElementsByTagName("unknown")[0];
28 unknown
.textContent
= "sss";
29 unknown
.outerHTML
= "";
30 document
.execCommand("SelectAll", false);
31 // Put description() here so as to not upset test condition.
32 description("Verify that changing the style over an unknown element does not crash.");
33 if (window
.testRunner
)
34 testRunner
.notifyDone();