Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Element / id-in-insert-hr.html
blobecc83e62d3e3d81bf6609c599b91e78bde49949c
1 <html>
2 <head>
3 <script src="../../../resources/js-test.js"></script>
4 </head>
5 <body>
7 <div id="test1" contenteditable="true">foobar</div>
9 <script>
10 description("Test using id in execCommand(InsertHorizontalRule)");
12 var s = window.getSelection();
13 var e = document.getElementById("test1");
14 s.collapse(e, 0);
16 var id = "hr";
17 document.execCommand("InsertHorizontalRule", false, id);
18 var hr = document.getElementById(id);
20 shouldBeNonNull('hr');
21 </script>
22 </body>
23 </html>