<card id="edit" contentEditable="true">A<script>
if (window.testRunner)
    testRunner.dumpAsText();

edit.focus();
document.execCommand("SelectAll");
document.execCommand("RemoveFormat");

document.writeln('execCommand("RemoveFormat") was crashing when there is no enclosing block.<br>');
document.writeln('The test has passed if it does not crash.<br><br>')
document.writeln('PASS');
</script>
