3 <script src=
"../../resources/dump-as-markup.js"></script>
5 Markup
.description("This tests focusing the body element in a contentEditable iframe. The whole body contents should be selected. Focus should only place the cursor at the beginning of the body if there isn't an existing selection.");
7 function handleLoad() {
8 var win
= document
.querySelector('iframe').contentWindow
;
9 var body
= win
.document
.body
;
10 body
.innerHTML
= "asdf";
11 body
.contentEditable
= true;
12 win
.getSelection().selectAllChildren(body
);
14 Markup
.dump(win
.document
);
17 <iframe onload=
"handleLoad()"></iframe>