Index: LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition11.js |
diff --git a/LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition11.js b/LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition11.js |
index 78956e5b4906a9d04e1dad69d9a0b9b79ecc3845..e1089c1b20edce46e8684d73df71ae31c33f7510 100644 |
--- a/LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition11.js |
+++ b/LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition11.js |
@@ -99,8 +99,8 @@ function nodecomparedocumentposition11() { |
doc = load(docRef, "doc", "hc_staff"); |
elemList = doc.getElementsByTagName("p"); |
elem = elemList.item(3); |
- newAttr = doc.createAttribute("xml:lang"); |
- replacedAttr = elem.setAttributeNode(newAttr); |
+ newAttr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang"); |
+ replacedAttr = elem.setAttributeNodeNS(newAttr); |
attrPosition = newAttr.compareDocumentPosition(doc); |
assertEquals("nodecomparedocumentpositionPRECEDINGContains11",10,attrPosition); |