OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../../resources/js-test.js"></script> |
| 5 </head> |
| 6 <body> |
| 7 <unknown> |
| 8 <script></script> |
| 9 <textarea></textarea> |
| 10 <script> |
| 11 if (window.testRunner) { |
| 12 testRunner.dumpAsText(); |
| 13 testRunner.waitUntilDone(); |
| 14 } |
| 15 |
| 16 function onDOMNodeRemoved(e) { |
| 17 if (!(e.srcElement instanceof Element)) |
| 18 return; |
| 19 |
| 20 e.srcElement.insertAdjacentHTML('afterbegin', ' '); |
| 21 document.execCommand('FontSizeDelta', false, '1px'); |
| 22 } |
| 23 |
| 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 cra
sh."); |
| 33 if (window.testRunner) |
| 34 testRunner.notifyDone(); |
| 35 </script> |
| 36 </body> |
| 37 </html> |
OLD | NEW |