5 testRunner
.dumpAsText();
7 var aoScriptElements
= document
.getElementsByTagName("script");
8 for(var i
= 0; i
< aoScriptElements
.length
; i
++) {
9 aoScriptElements
[i
].parentNode
.removeChild(aoScriptElements
[i
]);
12 var DOMNodeRemoved_active
= false;
13 var DOMNodeRemoved_fired_count
= 0;
14 function DOMNodeRemoved() {
15 if (DOMNodeRemoved_active
) return ;
16 DOMNodeRemoved_active
= true;
18 document
.execCommand('InsertOrderedList',false,false);
20 var oSelection
=window
.getSelection();
21 oSelection
.modify('extend', 'forward', 'sentenceboundary');
23 var oRange
= oSelection
.getRangeAt(0);
25 var aoElements
= document
.getElementsByTagName("*");
26 var oParentElement
= aoElements
[53 % aoElements
.length
];
27 try { oRange
.surroundContents(oParentElement
) } catch(e
) {}
30 document
.execCommand('InsertText',false,'\\\\\\\\\\\\m{VVVVVVVVVVVVVVV<};<WWWWW');
31 DOMNodeRemoved_active
= false;
33 document
.addEventListener("DOMNodeRemoved", DOMNodeRemoved
, true);
35 window
.onload = function() {
36 document
.designMode
= "on";
38 var oSelection
=window
.getSelection();
39 document
.execCommand("SelectAll", false, false)
41 var oRange
= oSelection
.getRangeAt(0);
42 var oInsertedElement
= document
.getElementById('textarea');
43 oRange
.insertNode(oInsertedElement
);
45 var oRange
= oSelection
.getRangeAt(0);
46 var oParentElement
= document
.getElementById('br');
47 try { oRange
.surroundContents(oParentElement
) } catch (e
) {}
49 var oRange
= oSelection
.getRangeAt(0);
50 var oInsertedElement
= document
.createElementNS('http://www.w3.org/2000/svg', 'view');
51 oRange
.insertNode(oInsertedElement
);
53 var oSelection
= window
.getSelection();
54 document
.execCommand("SelectAll", false, false)
55 oSelection
.collapseToStart();
57 document
.execCommand('Outdent',false,false);
58 document
.execCommand('Undo',false,false);
60 var aoElements
= document
.getElementsByTagName("*");
61 var oElement
= aoElements
[30];
62 try { oElement
.outerHTML
= ""; } catch (e
) {}
64 var oRange
= oSelection
.getRangeAt(0);
65 var oParentElement
= aoElements
[24];
66 oRange
.surroundContents(oParentElement
);
72 -webkit-appearance: media-volume-slider-container;
75 .CLASS3 { font-style: oblique; }
76 .CLASS11 { display: inherit; }
77 *:first-letter { color: green; }
94 <textarea class=
"CLASS11"></textarea>
108 <textarea id=
"textarea"></textarea>
123 <svg class=
"CLASS11">
126 <linearGradient></linearGradient>
128 <foreignObject></foreignObject>
129 <polyline></polyline>
130 Test passes if it does not CRASH.