Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / default-parameters.html
blob27b271eba67b9ab91a9140a157d6460aae0fa823
1 <html>
2 <body>
3 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=12249">bug 12249</a>:
4 FCKeditor: &lt;hr>, &lt;ul> and &lt;ol> have id="undefined".</p>
5 <div id="div" contenteditable="true"></div>
7 <script>
8 if (window.testRunner)
9 testRunner.dumpAsText();
11 try {
12 var div = document.getElementById("div");
13 div.focus();
15 document.execCommand("InsertHorizontalRule");
17 if (div.innerHTML.match(/.*undefined.*/))
18 document.write("FAILURE");
19 else
20 document.write("SUCCESS");
21 } catch (ex) {
22 document.write(ex);
24 </script>
25 </body>