3 <script src=
"../../resources/gc.js"></script>
5 if (window
.testRunner
) {
6 testRunner
.dumpAsText();
7 testRunner
.waitUntilDone();
11 frame
= document
.getElementById('frame');
12 node2
= document
.createElement('b');
13 node1
= document
.createElement('h1');
14 node1
.appendChild(node2
);
15 range
= document
.createRange();
16 range
.selectNodeContents(node1
);
18 frame
.contentDocument
.body
.appendChild(node1
);
20 node1
.removeChild(node2
);
23 document
.body
.innerText
= 'Final end container, offset: ' + range
.endContainer
+ ', ' + range
.endOffset
;
24 if (window
.testRunner
)
25 testRunner
.notifyDone()
31 <iframe id=
"frame"></iframe>