2 <title>Test for Bug
1130651</title>
3 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
4 <link rel=
"stylesheet" href=
"/tests/SimpleTest/test.css"/>
5 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1332876">Mozilla Bug
1332876</a>
6 <div contenteditable
>a b
</div>
8 var div
= document
.querySelector("div");
10 getSelection().collapse(div
.firstChild
, 2);
12 document
.execCommand("inserttext", false, "\n");
13 ok(true, "No exception thrown");
15 ok(false, "Exception: " + e
);