2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / editing / pasteboard / 5245519.html
blobe69254a9f773636780e6b8ed92e9d3f9acf61176
1 <div id="description">This tests for a crash when pasting content that contains Apple-style-spans that don't have renderers.' You should see 'Hello World!' We don't currently remove the empty invisible style span at paste time because it doesn't anticipate encountering non-inheritable styles on style spans, because we never create those at copy time.</div>
2 <div id="edit" contenteditable="true"><br></div>
4 <script>
5 edit = document.getElementById("edit");
6 description = document.getElementById("description");
7 edit.focus();
8 document.execCommand("InsertHTML", false, "Hello <span style='display:none;' class='Apple-style-span'></span>World!");
9 if (window.layoutTestController) {
10 window.layoutTestController.dumpAsText();
11 document.body.innerText = description.innerText + "\n" + edit.innerHTML;
13 </script>