4 #el0 { position: relative; }
5 #el2 { outline-style: dashed; }
8 if (window
.testRunner
) {
9 testRunner
.waitUntilDone();
12 function log(message
) {
13 var console
= document
.getElementById("console");
14 console
.appendChild(document
.createTextNode(message
+ "\n"));
18 document
.execCommand('removeformat');
19 setTimeout("finish()", 100);
22 if (window
.testRunner
) {
23 testRunner
.dumpAsText();
24 log("PASSED: Didn't crash!\n");
25 testRunner
.notifyDone();
29 // This tests a crash caused by stale pointers to continuations in a block's continuations table.
30 // https://bugs.webkit.org/show_bug.cgi?id=81276
33 el0
=document
.createElement('span')
34 el0
.setAttribute('id','el0')
35 document
.body
.appendChild(el0
)
36 el1
=document
.createElement('div')
38 el1
.appendChild(document
.createElement('input'))
39 el0
.appendChild(document
.createTextNode('A'))
40 el2
=document
.createElement('q')
41 el2
.setAttribute('id','el2')
42 document
.body
.appendChild(el2
)
43 el2
.appendChild(document
.createElement('div'))
44 el2
.appendChild(document
.createElement('input'))
45 document
.designMode
='on'
46 document
.execCommand('selectall')
47 document
.execCommand('FormatBlock', false, '<'+'pre>')
48 document
.execCommand('Undo')
49 setTimeout("test();",10)
53 <body onload=
"runTest();">
54 <div id=
"console"></div>