blob: f60977f9f3fe0147bb5e2fbce9761438f599d1dd [file] [log] [blame]
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<div id="test1" contenteditable="true">foobar</div>
<script>
description("Test using id in execCommand(InsertHorizontalRule)");
var s = window.getSelection();
var e = document.getElementById("test1");
s.setPosition(e, 0);
var id = "hr";
document.execCommand("InsertHorizontalRule", false, id);
var hr = document.getElementById(id);
shouldBeNonNull('hr');
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>