Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / dom / xhtml / level3 / core / nodecomparedocumentposition11.js
index e1089c1..78956e5 100644 (file)
@@ -99,8 +99,8 @@ function nodecomparedocumentposition11() {
       doc = load(docRef, "doc", "hc_staff");
       elemList = doc.getElementsByTagName("p");
       elem = elemList.item(3);
-      newAttr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang");
-      replacedAttr = elem.setAttributeNodeNS(newAttr);
+      newAttr = doc.createAttribute("xml:lang");
+      replacedAttr = elem.setAttributeNode(newAttr);
       attrPosition = newAttr.compareDocumentPosition(doc);
       assertEquals("nodecomparedocumentpositionPRECEDINGContains11",10,attrPosition);