Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / inserting / 5549929-1.html
1 <p>This tests for a crash when inserting into a tab into a tab span that contains a br.  You should no longer be able to get a br inside a tab span while editing but we should still avoid the crash.</p>
2 <div id="div" contenteditable="true">
3 <div>foo</div>
4 <div><span id="span" class="Apple-tab-span"><br></span></div>
5 <div>bar</div>
6
7 <script>
8 if (window.testRunner)
9     window.testRunner.dumpAsText();
10 document.getElementById("div").focus();
11 span = document.getElementById("span");
12 window.getSelection().collapse(span, 0);
13 document.execCommand("InsertText", false, "\t");
14 </script>