blob: 7b799d0bfdf3ec8c1f0dcc9d74b5db67da26cdbb [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<div contenteditable id="root"><span id="dupe">hello</span></div>
<script src="../../resources/dump-as-markup.js"></script>
<script>
var sel = window.getSelection();
sel.collapse(document.getElementById("dupe"), 0);
document.execCommand('InsertParagraph', false, null)
Markup.description("This sets the selection to the start of a span, and hits the enter key.\n"
+ "Expected behavior: when the span is split, its ID should not be duplicated. See bug 62621.");
Markup.dump(root);
</script>
</body>
</html>