17 lines
728 B
HTML
17 lines
728 B
HTML
<div id="description">This tests to see if indenting several paragraphs inside different table cells puts them into a single cell, as in FireFox (wrong) or indents each paragraph (correct).</div>
|
|
<div id="edit" contenteditable="true">
|
|
<table border="1"><tr><td id="start">hello</td><td id="end">world</td></tr></table>
|
|
</div>
|
|
|
|
<script>
|
|
if (window.testRunner)
|
|
window.testRunner.dumpAsText();
|
|
|
|
start = document.getElementById("start");
|
|
end = document.getElementById("end");
|
|
window.getSelection().setBaseAndExtent(start, 0, end, end.childNodes.length);
|
|
document.execCommand("Indent");
|
|
|
|
document.body.innerText = document.getElementById("description").innerText + "\n" + document.getElementById("edit").innerHTML;
|
|
</script>
|