5 testRunner
.dumpAsText();
8 // Make documentElement to P element without HTML and BODY.
9 var htmlElement
= document
.documentElement
;
10 var target
= document
.getElementById('target');
11 document
.replaceChild(target
, htmlElement
);
13 document
.designMode
= 'on';
14 window
.getSelection().collapse(target
, 0);
15 document
.execCommand('InsertHTML', false, '<pre></pre>');
17 // Here, document.documentElement is null.
18 document
.write('PASS if Blink doesn\'t crash.');