1 <div id="description">This tests for a crash when removing format from two paragraphs that are inside blocks with different block properties than the blocks surrounding them. You should see two left aligned paragraphs below. <b>It demonstrates a bug: <a href="rdar://problem/5794382">RemoveFormat doesn't always reset text alignment</a></b></div>
2 <div contentEditable="true" id="edit">
3 <div style="text-align: right;">
4 <div style="text-align: left;">foo<br>bar</div>
9 description = document.getElementById("description");
10 edit = document.getElementById("edit");
12 document.execCommand("SelectAll");
13 document.execCommand("RemoveFormat");
14 if (window.layoutTestController) {
15 window.layoutTestController.dumpAsText();
16 document.body.innerText = description.innerText + "\n\n" + edit.innerHTML;