blob: 116cdb77619bb152270ccbdcdd57086061a3db45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<html>
<head>
<script src="../../resources/gc.js"></script>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function go() {
frame = document.getElementById('frame');
node2 = document.createElement('b');
node1 = document.createElement('h1');
node1.appendChild(node2);
range = document.createRange();
range.selectNodeContents(node1);
frame.contentDocument.body.appendChild(node1);
node1.removeChild(node2);
delete node2;
gc();
document.body.innerText = 'Final end container, offset: ' + range.endContainer + ', ' + range.endOffset;
if (window.testRunner)
testRunner.notifyDone()
}
</script>
</head>
<body onload="go()">
FAIL
<iframe id="frame"></iframe>
</body>
</html>
|