3 <div id=
"sample" contenteditable=
"true">
4 Foo
<audio id=
"audio" src=
"bottom"></audio>Bar
8 if (window
.testRunner
) {
9 testRunner
.dumpAsText();
10 testRunner
.waitUntilDone();
13 function clearUndoStack() {
14 document
.querySelector('iframe').outerHTML
= '';
17 function $(id
) { return document
.getElementById(id
); }
19 var range
= document
.createRange();
20 range
.selectNodeContents($('sample'));
21 var selection
= window
.getSelection();
22 selection
.removeAllRanges();
23 selection
.addRange(range
);
25 setTimeout(function() {
30 window
.onload = function() {
31 $('container').outerHTML
= 'PASS; NOT CRASHED';
32 if (window
.testRunner
)
33 testRunner
.notifyDone();
36 document
.execCommand('Delete', false);
37 document
.execCommand('InsertUnorderedList', false);