1 <html class=
"reftest-wait">
3 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
4 <script src=
"/tests/SimpleTest/EventUtils.js"></script>
11 <body onload=
"start()">
12 <div onfocus=
"done()" contenteditable
>foo
<span></span>bar
</div>
14 var div
= document
.querySelector("div");
19 var sel
= getSelection();
20 // Set the caret right before "bar"
21 sel
.collapse(div
.lastChild
, 0);
22 document
.documentElement
.removeAttribute("class");