4 <script type=
"text/javascript">
7 testRunner
.dumpAsText();
9 document
.designMode
= 'on';
10 document
.execCommand("SelectAll");
11 document
.documentElement
.removeChild(document
.body
);
12 document
.execCommand("FormatBlock", false, "div");
14 document
.documentElement
.appendChild(document
.createElement('body'));
15 document
.body
.innerText
= 'This tests executing FormatBlock command without body element.\n'
16 + 'The passes if WebKit does not crash.\n\n'