blob: 6c57cab5a2981f9454da0df90598d4d845756b1e [file] [log] [blame]
<!doctype html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
test(() => {
assert_selection(
[
'<div contenteditable><table><tbody><tr><td>',
'<a href="http://google.com/">',
'<b>foo|bar</b>',
'</a>',
'</td></tr></tbody></table></div>'
].join(''),
'insertHTML baz',
[
'<div contenteditable><table><tbody><tr><td>',
'<a href="http://google.com/">',
'<b>foo</b>',
'baz|<a href="http://google.com/"><b>bar</b></a>',
'</a>',
'</td></tr></tbody></table></div>'
].join(''));
}, 'insertHTML text into anchor in table');
</script>