1 <html xmlns=
"http://www.w3.org/1999/xhtml" class=
"reftest-wait">
6 function foop(targetWindow
)
8 var targetDocument
= targetWindow
.document
;
10 var r1
= targetDocument
.createRange();
11 r1
.setStart(targetDocument
.getElementById("out1"), 0);
12 r1
.setEnd (targetDocument
.getElementById("out2"), 0);
13 targetWindow
.getSelection().addRange(r1
);
15 var r2
= targetDocument
.createRange();
16 r2
.setStart(targetDocument
.getElementById("in1"), 0);
17 r2
.setEnd (targetDocument
.getElementById("in2"), 0);
18 targetWindow
.getSelection().addRange(r2
);
20 targetDocument
.execCommand('removeformat', false, null);
21 targetDocument
.execCommand('outdent', false, null);
28 var fd
= window
.frames
[0].document
;
29 fd
.body
.appendChild(fd
.importNode(document
.getElementById('rootish'), true));
31 foop(window
.frames
[0]);
32 document
.documentElement
.removeAttribute("class");
40 <body onload=
"init()">
42 <iframe srcdoc=
"<html></html>" style=
"width: 95%; height: 500px;"/>