Index: LayoutTests/fast/dom/Range/range-compareNode.html |
diff --git a/LayoutTests/fast/dom/Range/range-compareNode.html b/LayoutTests/fast/dom/Range/range-compareNode.html |
index e895387e41e87c52b580f8b5f59f5670f5f86b76..9a69cf011b659682cff114d132839eaf7b269cd7 100644 |
--- a/LayoutTests/fast/dom/Range/range-compareNode.html |
+++ b/LayoutTests/fast/dom/Range/range-compareNode.html |
@@ -181,7 +181,7 @@ function test() |
try { |
result = range.compareNode(node); |
} catch (e) { |
- if(e.code == DOMException.NOT_FOUND_ERR) { |
+ if(e.name == "TypeError") { |
document.getElementById("test19").innerHTML = "test 19 passed: deleted node"; |
} else { |
document.getElementById("test19").innerHTML = "<span style=\"color: red;\">test 19 failed error: " + e.message + "</span>"; |