summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/execCommand/remove-format-non-html-element-crash.html
blob: 3cba1ac00fee8a0d9245ff9b1f339c6919845c77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<html>
<body>
Test passes if it does not crash.
<div id="test" contenteditable="true">
<ins><math>ABCD</math></ins>
</div>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();

    var test = document.getElementById("test");
    test.focus();
    document.execCommand("SelectAll");
    document.execCommand("RemoveFormat");
    document.body.removeChild(test);
</script>
</body>
</html>