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 407a5febcdc4b6f083bbb7db23f56ff09dd79753..a174f2560457f3139bc4d8abd6c1f68ebc72ed5c 100644 |
--- a/LayoutTests/fast/dom/Range/range-compareNode.html |
+++ b/LayoutTests/fast/dom/Range/range-compareNode.html |
@@ -152,7 +152,7 @@ function test() |
try { |
range.selectNode(document); |
} catch (e) { |
- if(e.code == RangeException.INVALID_NODE_TYPE_ERR) { |
+ if(e.code == DOMException.INVALID_NODE_TYPE_ERR) { |
document.getElementById("test17").innerHTML = "test 17 passed: the range has no parent"; |
} else { |
document.getElementById("test17").innerHTML = "<span style=\"color: red;\">test 17 failed error: " + e.message + "\n Code: " + e.code +"</span>"; |