Index: LayoutTests/dom/html/level2/core/createAttributeNS06.js |
diff --git a/LayoutTests/dom/xhtml/level2/core/createElementNS06.js b/LayoutTests/dom/html/level2/core/createAttributeNS06.js |
similarity index 83% |
copy from LayoutTests/dom/xhtml/level2/core/createElementNS06.js |
copy to LayoutTests/dom/html/level2/core/createAttributeNS06.js |
index e0dd3eb5b8dd595775a8968c665d6aab3fda6b52..b788b3ddc3a3c2a33ca4d481906f25040f95be6c 100644 |
--- a/LayoutTests/dom/xhtml/level2/core/createElementNS06.js |
+++ b/LayoutTests/dom/html/level2/core/createAttributeNS06.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/level2/core/createElementNS06"; |
+ return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/createAttributeNS06"; |
} |
var docsLoaded = -1000000; |
@@ -75,22 +75,20 @@ function loadComplete() { |
/** |
* |
-Document.createElementNS with an empty qualified name should cause an INVALID_CHARACTER_ERR. |
+Document.createAttributeNS with an empty qualified name should cause an INVALID_CHARACTER_ERR. |
* @author Curt Arnold |
-* @see http://www.w3.org/TR/DOM-Level-2-Core/core#ID-DocCrElNS |
-* @see http://www.w3.org/TR/DOM-Level-2-Core/core#xpointer(id('ID-DocCrElNS')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INVALID_CHARACTER_ERR']) |
+* @see http://www.w3.org/TR/DOM-Level-2-Core/core#ID-DocCrAttrNS |
+* @see http://www.w3.org/TR/DOM-Level-2-Core/core#xpointer(id('ID-DocCrAttrNS')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INVALID_CHARACTER_ERR']) |
* @see http://www.w3.org/Bugs/Public/show_bug.cgi?id=525 |
*/ |
-function createElementNS06() { |
+function createAttributeNS06() { |
var success; |
- if(checkInitialization(builder, "createElementNS06") != null) return; |
+ if(checkInitialization(builder, "createAttributeNS06") != null) return; |
var namespaceURI = "http://www.example.com/"; |
var qualifiedName; |
var doc; |
- var done; |
- var newElement; |
- var charact; |
+ var newAttr; |
var docRef = null; |
if (typeof(this.doc) != 'undefined') { |
@@ -101,7 +99,7 @@ function createElementNS06() { |
{ |
success = false; |
try { |
- newElement = doc.createElementNS(namespaceURI,""); |
+ newAttr = doc.createAttributeNS(namespaceURI,""); |
} |
catch(ex) { |
success = (typeof(ex.code) != 'undefined' && ex.code == 5); |
@@ -115,5 +113,5 @@ function createElementNS06() { |
function runTest() { |
- createElementNS06(); |
+ createAttributeNS06(); |
} |