blob: 8ca35f91d08f274d7731d34b0fabb3b1d9938516 [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.setPosition(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>