1 <p>This tested for a crash when performing Range::extractContents on a range that has had the start or end removed from the document.
</p>
2 <p>It's now impossible to create a range like this, but at one point with an earlier version of WebKit, it was possible.
</p>
3 <div id=
"div" contenteditable=
"true">text
<a href=
"http://www.apple.com/">link
</a></div>
8 var li
= document
.createElement("li");
9 li
.appendChild(document
.createTextNode(str
));
10 var console
= document
.getElementById("console");
11 console
.appendChild(li
);
14 if (window
.testRunner
)
15 window
.testRunner
.dumpAsText();
17 var div
= document
.getElementById("div");
18 var text
= div
.firstChild
;
19 var link
= div
.lastChild
;
20 var r
= document
.createRange();
23 text
.parentNode
.removeChild(text
);
25 log("No crash means success!");