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