3 <script type=
"text/javascript">
5 function is(aLeft
, aRight
, aMessage
) {
6 window
.opener
.SimpleTest
.is(aLeft
, aRight
, aMessage
);
10 window
.opener
.SimpleTest
.finish();
14 var root
= document
.documentElement
;
15 while (root
.firstChild
) {
16 root
.firstChild
.remove();
18 root
.appendChild(document
.createTextNode("Mozilla"));
20 let cespan
= document
.createElementNS("http://www.w3.org/1999/xhtml", "span");
21 cespan
.setAttributeNS(null, "contenteditable", "true");
22 root
.appendChild(cespan
);
24 document
.execCommand("selectAll", false, null);
27 is(window
.getSelection().toString(), "Mozilla",
28 "The nodes are not selected");
33 window
.opener
.SimpleTest
.waitForFocus(boom
, window
);
37 <body onunload=
"unload();"></body>