1 <html class=
"reftest-wait">
3 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
5 <body onload=
"start()">
6 <iframe srcdoc=
"<body contenteditable spellcheck=false>foo bar"></iframe>
9 var iframe
= document
.querySelector("iframe");
10 var win
= iframe
.contentWindow
;
11 var doc
= iframe
.contentDocument
;
13 setTimeout(function() {
16 // Now try to set the caret without moving it
17 win
.getSelection().collapse(doc
.body
.firstChild
, 1);
19 document
.documentElement
.removeAttribute("class");