3 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
6 This tests indenting three paragraphs with different hierarchies.
7 <div id="root" contenteditable="true">
9 <div><span class="Apple-style-span" style="background-color: rgb(255, 0, 0);">Hello <img src="http://"> world</span></div>
10 <div>Hello <img src="http://"> world</span></div>
11 Hello <img src="http://"> world
16 <li>Before indent:<span id="c1"></span></li>
17 <li>After indent:<span id="c2"></span></li>
20 <script type="text/javascript">
21 if (window.layoutTestController)
22 window.layoutTestController.dumpAsText();
24 function editingTest()
26 var e = document.getElementById('root');
28 document.execCommand("SelectAll");
29 document.getElementById('c1').appendChild(document.createTextNode(e.innerHTML));
31 document.execCommand("Indent");
32 document.getElementById('c2').appendChild(document.createTextNode(e.innerHTML));