2 <html xmlns=
"http://www.w3.org/1999/xhtml">
7 window
.onload = function () {
8 document
.execCommand("SelectAll", false);
12 document
.addEventListener("DOMNodeRemovedFromDocument", function () {
13 range
= getSelection().getRangeAt(0);
16 getSelection().getRangeAt(0).extractContents();
17 range
.getBoundingClientRect();
19 if (window
.testRunner
)
20 testRunner
.dumpAsText();
22 alert("This test calls getBoundingClientRect on a range obtained inside a mutation event listener.\n"
23 + "The test passes if WebKit doesn't crash.\n\n"