3 <span id=span1
></span><button id=button1
>button
</button>
5 .embedStyle { min-height:
13pc; -webkit-transition:
10s; }
9 div1
= document
.createElement("div");
10 document
.body
.appendChild(div1
);
11 embed1
= document
.createElementNS("http://www.w3.org/1999/xhtml", "embed");
12 document
.body
.offsetTop
;
13 embed1
.setAttribute("class", "embedStyle");
14 span1
.appendChild(embed1
);
15 embed1
.setAttribute("type", "block");
16 document
.body
.offsetTop
;
17 r
= document
.createRange();
18 r
.setStart(button1
, 0);
19 r
.setEnd(div1
, div1
.childNodes
.length
);
20 window
.getSelection().addRange(r
);
21 o
= r
.extractContents();
22 document
.body
.appendChild(o
);
23 window
.getSelection().modify("move", "Right", "character");
25 if (window
.testRunner
) testRunner
.dumpAsText();
27 document
.addEventListener("DOMContentLoaded", runTest
, false);
28 </script>PASS, if no crash or assert in debug