blob: 9ef7b57c0f03e2e7ebd9f374d5e994e1d560e119 [file] [log] [blame]
<p>This tries to select a table inside an editable region whose content is not editable. The table and its contents should be selected.</p>
<div id="div" contenteditable="true"><table id="table" border="1" contenteditable="false"><tr><td>foo</td></tr></table></div>
<script>
var div = document.getElementById("div");
var sel = window.getSelection();
// Try to select the table.
sel.setBaseAndExtent(div, 0, div, 1);
</script>