blob: 6071193b7a086627787d09593163ee3d374dc606 [file] [log] [blame]
<style>
span { display: none }
</style>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
</script>
<body contenteditable>
<p>Editing code creates temporary SPANs in some situations. Check we don't crash if we have style span { display: none }
<p>
<b id=b>select me fully </b><i id=i>select me partially ----------</i>
<script>
var selection = window.getSelection();
var b = document.getElementById('b');
var i = document.getElementById('i');
selection.setBaseAndExtent(b, 0, i.firstChild, 20);
document.execCommand("Delete");
</script>
</body>