blob: ffdf47f39c44537ba2b74a0591878d8d9c6d2e16 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../../resources/dump-as-markup.js"></script>
<div id="test" contenteditable><table><tr><td><b>hello</b></td></tr><tr><td>world</td></tr></table></div>
<script>
Markup.description('This tests that RemoveFormat does not add extra span tags when executed inside a table cell.');
window.getSelection().selectAllChildren(document.getElementsByTagName('b')[0]);
document.execCommand('RemoveFormat', false, null);
Markup.dump('test');
</script>
</body>
</html>