upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / indent-second-paragraph-in-blockquote.html
1 <p>This tests indenting the second paragraph in a blockquote.  By indenting "world", we should be inserting a blockquote around world inside the "test" blockquote.</p>
2 <div id="div" contenteditable="true">
3 <blockquote id="test">
4 hello<br>
5 world
6 </blockquote>
7 </div>
8 <div id="c"></div>
9 <script>
10
11 if (window.layoutTestController)
12     layoutTestController.dumpAsText();
13
14 var e = document.getElementById("test");
15 var s = window.getSelection();
16 var r = document.createRange();
17 r.setStart(e,2);
18 r.setEnd(e,3);
19 s.addRange(r);
20 document.execCommand("Indent", false, null);
21 text = document.createTextNode(document.getElementById('div').innerHTML);
22 document.getElementById('c').appendChild( text );
23 </script>