blob: e69254a9f773636780e6b8ed92e9d3f9acf61176 [file] [log] [blame]
<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>
<div id="edit" contenteditable="true"><br></div>
<script>
edit = document.getElementById("edit");
description = document.getElementById("description");
edit.focus();
document.execCommand("InsertHTML", false, "Hello <span style='display:none;' class='Apple-style-span'></span>World!");
if (window.layoutTestController) {
window.layoutTestController.dumpAsText();
document.body.innerText = description.innerText + "\n" + edit.innerHTML;
}
</script>