Index: LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace16.js |
diff --git a/LayoutTests/dom/xhtml/level3/core/nodeisequalnode04.js b/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace16.js |
similarity index 77% |
copy from LayoutTests/dom/xhtml/level3/core/nodeisequalnode04.js |
copy to LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace16.js |
index e7a66052eb4a0ce1607c596b601245e1041c2a92..fe1afc6af92503bcc16a4c31c0ccbf1f2ab63daf 100644 |
--- a/LayoutTests/dom/xhtml/level3/core/nodeisequalnode04.js |
+++ b/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace16.js |
@@ -17,7 +17,7 @@ the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
* @return uri identifier of test |
*/ |
function getTargetURI() { |
- return "http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeisequalnode04"; |
+ return "http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeisdefaultnamespace16"; |
} |
var docsLoaded = -1000000; |
@@ -75,31 +75,29 @@ function loadComplete() { |
/** |
* |
- Create a new Element node in this Document. return its ownerDocument and check if the |
- the ownerDocument is equal to this Document using isEqualNode. |
+ Using isDefaultNamespace on a new Attribute node with with a namespace URI |
+ and no prefix and verify if the value returned is false since default namespaces |
+ do not apply directly to attributes. |
* @author IBM |
* @author Neil Delima |
-* @see http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Node3-isEqualNode |
+* @see http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Node3-isDefaultNamespace |
*/ |
-function nodeisequalnode04() { |
+function nodeisdefaultnamespace16() { |
var success; |
- if(checkInitialization(builder, "nodeisequalnode04") != null) return; |
+ if(checkInitialization(builder, "nodeisdefaultnamespace16") != null) return; |
var doc; |
- var ownerDoc; |
- var elem; |
- var isEqual; |
+ var attr; |
+ var isDefault; |
var docRef = null; |
if (typeof(this.doc) != 'undefined') { |
docRef = this.doc; |
} |
doc = load(docRef, "doc", "barfoo"); |
- elem = doc.createElementNS("http://www.w3.org/1999/xhtml","xhtml:p"); |
- ownerDoc = elem.ownerDocument; |
- |
- isEqual = doc.isEqualNode(ownerDoc); |
- assertTrue("nodeisequalnode04",isEqual); |
+ attr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","lang"); |
+ isDefault = attr.isDefaultNamespace("http://www.w3.org/XML/1998/namespace"); |
+ assertFalse("nodeisdefaultnamespace16",isDefault); |
} |
@@ -107,5 +105,5 @@ function nodeisequalnode04() { |
function runTest() { |
- nodeisequalnode04(); |
+ nodeisdefaultnamespace16(); |
} |