blob: 27b271eba67b9ab91a9140a157d6460aae0fa823 [file] [log] [blame]
<html>
<body>
<p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=12249">bug 12249</a>:
FCKeditor: &lt;hr>, &lt;ul> and &lt;ol> have id="undefined".</p>
<div id="div" contenteditable="true"></div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
try {
var div = document.getElementById("div");
div.focus();
document.execCommand("InsertHorizontalRule");
if (div.innerHTML.match(/.*undefined.*/))
document.write("FAILURE");
else
document.write("SUCCESS");
} catch (ex) {
document.write(ex);
}
</script>
</body>