6 testRunner
.dumpAsText();
8 function doReplace(tagName
) {
9 var oldElement
= document
.getElementById(tagName
);
10 var newElement
= document
.createElement(tagName
);
11 while (oldElement
.firstChild
) {
12 newElement
.appendChild(oldElement
.firstChild
);
14 oldElement
.parentNode
.replaceChild(newElement
, oldElement
);
19 document
.designMode
= 'on';
20 getSelection().collapse(document
.querySelector('li'), 1);
21 document
.execCommand('InsertUnorderedList');
22 document
.documentElement
.textContent
= 'PASS if Blink doesn\'t crash.';
27 <h6><ul><li><div id=
"body"><h6>bar
<ul></ul></h6></div><br></li></ul></h6>