blob: 7316852b842467f6f79704e2cc91a5fe829e7963 [file] [log] [blame]
<p>This tests for a bug when creating a list from a table. The table should be inside a list item.</p>
<div contenteditable="true" id="div"><table border="1"><tr><td>foo</td></tr></table></div>
<p id="console"></p>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
function log(message) {
var console = document.getElementById("console");
var text = document.createTextNode(message);
console.appendChild(text);
}
var div = document.getElementById("div");
div.focus();
document.execCommand("SelectAll");
document.execCommand("InsertUnorderedList");
log(div.innerHTML);
</script>