diff options
author | kaustubh.a@samsung.com <kaustubh.a@samsung.com@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2014-02-10 03:55:49 +0000 |
---|---|---|
committer | kaustubh.a@samsung.com <kaustubh.a@samsung.com@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2014-02-10 03:55:49 +0000 |
commit | ccc7647cfde4adb7f1f4e13e8ce165f837974339 (patch) | |
tree | 09b5fbfc51d96674be156a5fa94c512ada11931e /third_party | |
parent | 3cbc8ac26f309aabfcd0c61161e7deb5fb0f476a (diff) | |
download | chromium_src-ccc7647cfde4adb7f1f4e13e8ce165f837974339.zip chromium_src-ccc7647cfde4adb7f1f4e13e8ce165f837974339.tar.gz chromium_src-ccc7647cfde4adb7f1f4e13e8ce165f837974339.tar.bz2 |
Remove Unused measure DocumentCreateAttributeNS
Intent to Remove:
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/8p-gwWL4ypc
BUG=341830
Review URL: https://codereview.chromium.org/158593003
git-svn-id: svn://svn.chromium.org/blink/trunk@166794 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party')
63 files changed, 29 insertions, 2411 deletions
diff --git a/third_party/WebKit/LayoutTests/dom/html/level2/core/createAttributeNS06-expected.txt b/third_party/WebKit/LayoutTests/dom/html/level2/core/createAttributeNS06-expected.txt deleted file mode 100644 index cd129e7..0000000 --- a/third_party/WebKit/LayoutTests/dom/html/level2/core/createAttributeNS06-expected.txt +++ /dev/null @@ -1,2 +0,0 @@ -Test: http://www.w3.org/2001/DOM-Test-Suite/level2/core/createAttributeNS06 -Status: Success diff --git a/third_party/WebKit/LayoutTests/dom/html/level2/core/createAttributeNS06.html b/third_party/WebKit/LayoutTests/dom/html/level2/core/createAttributeNS06.html deleted file mode 100644 index a8b546f..0000000 --- a/third_party/WebKit/LayoutTests/dom/html/level2/core/createAttributeNS06.html +++ /dev/null @@ -1,48 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" - "http://www.w3.org/TR/html4/strict.dtd" > -<!-- This is comment number 1.--> -<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="selfhtml.js"></script><script charset="UTF-8" type="text/javascript" src="createAttributeNS06.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()"> - <p> - <em>EMP0001</em> - <strong>Margaret Martin</strong> - <code>Accountant</code> - <sup>56,000</sup> - <var>Female</var> - <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym> - </p> - <p> - <em>EMP0002</em> - <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &ent2; -This is an adjacent CDATASection with a reference to a tab &tab;</strong> - <code>Secretary</code> - <sup>35,000</sup> - <var>Female</var> - <acronym title="Yes" class="Yes">β Dallas, γ - 98554</acronym> - </p> - <p> - <em>EMP0003</em> - <strong>Roger - Jones</strong> - <code>Department Manager</code> - <sup>100,000</sup> - <var>δ</var> - <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym> - </p> - <p> - <em>EMP0004</em> - <strong>Jeny Oconnor</strong> - <code>Personnel Director</code> - <sup>95,000</sup> - <var>Female</var> - <acronym title="Yes" class="Yα">27 South Road. Dallas, Texas 98556</acronym> - </p> - <p> - <em>EMP0005</em> - <strong>Robert Myers</strong> - <code>Computer Specialist</code> - <sup>90,000</sup> - <var>male</var> - <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym> - </p> -</body></html> diff --git a/third_party/WebKit/LayoutTests/dom/html/level2/core/createAttributeNS06.js b/third_party/WebKit/LayoutTests/dom/html/level2/core/createAttributeNS06.js deleted file mode 100644 index b788b3d..0000000 --- a/third_party/WebKit/LayoutTests/dom/html/level2/core/createAttributeNS06.js +++ /dev/null @@ -1,117 +0,0 @@ - -/* -Copyright © 2001-2004 World Wide Web Consortium, -(Massachusetts Institute of Technology, European Research Consortium -for Informatics and Mathematics, Keio University). All -Rights Reserved. This work is distributed under the W3C® Software License [1] in the -hope that it will be useful, but WITHOUT ANY WARRANTY; without even -the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 -*/ - - - - /** - * Gets URI that identifies the test. - * @return uri identifier of test - */ -function getTargetURI() { - return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/createAttributeNS06"; - } - -var docsLoaded = -1000000; -var builder = null; - -// -// This function is called by the testing framework before -// running the test suite. -// -// If there are no configuration exceptions, asynchronous -// document loading is started. Otherwise, the status -// is set to complete and the exception is immediately -// raised when entering the body of the test. -// -function setUpPage() { - setUpPageStatus = 'running'; - try { - // - // creates test document builder, may throw exception - // - builder = createConfiguredBuilder(); - - docsLoaded = 0; - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - docsLoaded += preload(docRef, "doc", "hc_staff"); - - if (docsLoaded == 1) { - setUpPageStatus = 'complete'; - } - } catch(ex) { - catchInitializationError(builder, ex); - setUpPageStatus = 'complete'; - } -} - - - -// -// This method is called on the completion of -// each asychronous load started in setUpTests. -// -// When every synchronous loaded document has completed, -// the page status is changed which allows the -// body of the test to be executed. -function loadComplete() { - if (++docsLoaded == 1) { - setUpPageStatus = 'complete'; - } -} - - -/** -* -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-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 createAttributeNS06() { - var success; - if(checkInitialization(builder, "createAttributeNS06") != null) return; - var namespaceURI = "http://www.example.com/"; - var qualifiedName; - var doc; - var newAttr; - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - doc = load(docRef, "doc", "hc_staff"); - - { - success = false; - try { - newAttr = doc.createAttributeNS(namespaceURI,""); - } - catch(ex) { - success = (typeof(ex.code) != 'undefined' && ex.code == 5); - } - assertTrue("throw_INVALID_CHARACTER_ERR",success); - } - -} - - - - -function runTest() { - createAttributeNS06(); -} diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level2/core/createAttributeNS06-expected.txt b/third_party/WebKit/LayoutTests/dom/xhtml/level2/core/createAttributeNS06-expected.txt deleted file mode 100644 index 791514d..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level2/core/createAttributeNS06-expected.txt +++ /dev/null @@ -1,2 +0,0 @@ -Test http://www.w3.org/2001/DOM-Test-Suite/level2/core/createAttributeNS06 -Status Success diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level2/core/createAttributeNS06.js b/third_party/WebKit/LayoutTests/dom/xhtml/level2/core/createAttributeNS06.js deleted file mode 100644 index b788b3d..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level2/core/createAttributeNS06.js +++ /dev/null @@ -1,117 +0,0 @@ - -/* -Copyright © 2001-2004 World Wide Web Consortium, -(Massachusetts Institute of Technology, European Research Consortium -for Informatics and Mathematics, Keio University). All -Rights Reserved. This work is distributed under the W3C® Software License [1] in the -hope that it will be useful, but WITHOUT ANY WARRANTY; without even -the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 -*/ - - - - /** - * Gets URI that identifies the test. - * @return uri identifier of test - */ -function getTargetURI() { - return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/createAttributeNS06"; - } - -var docsLoaded = -1000000; -var builder = null; - -// -// This function is called by the testing framework before -// running the test suite. -// -// If there are no configuration exceptions, asynchronous -// document loading is started. Otherwise, the status -// is set to complete and the exception is immediately -// raised when entering the body of the test. -// -function setUpPage() { - setUpPageStatus = 'running'; - try { - // - // creates test document builder, may throw exception - // - builder = createConfiguredBuilder(); - - docsLoaded = 0; - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - docsLoaded += preload(docRef, "doc", "hc_staff"); - - if (docsLoaded == 1) { - setUpPageStatus = 'complete'; - } - } catch(ex) { - catchInitializationError(builder, ex); - setUpPageStatus = 'complete'; - } -} - - - -// -// This method is called on the completion of -// each asychronous load started in setUpTests. -// -// When every synchronous loaded document has completed, -// the page status is changed which allows the -// body of the test to be executed. -function loadComplete() { - if (++docsLoaded == 1) { - setUpPageStatus = 'complete'; - } -} - - -/** -* -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-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 createAttributeNS06() { - var success; - if(checkInitialization(builder, "createAttributeNS06") != null) return; - var namespaceURI = "http://www.example.com/"; - var qualifiedName; - var doc; - var newAttr; - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - doc = load(docRef, "doc", "hc_staff"); - - { - success = false; - try { - newAttr = doc.createAttributeNS(namespaceURI,""); - } - catch(ex) { - success = (typeof(ex.code) != 'undefined' && ex.code == 5); - } - assertTrue("throw_INVALID_CHARACTER_ERR",success); - } - -} - - - - -function runTest() { - createAttributeNS06(); -} diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level2/core/createAttributeNS06.xhtml b/third_party/WebKit/LayoutTests/dom/xhtml/level2/core/createAttributeNS06.xhtml deleted file mode 100644 index 4a354c8..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level2/core/createAttributeNS06.xhtml +++ /dev/null @@ -1,60 +0,0 @@ -<?xml version="1.0"?><?TEST-STYLE PIDATA?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "xhtml1-strict.dtd" [ - <!ENTITY alpha "α"> - <!ENTITY beta "β"> - <!ENTITY gamma "γ"> - <!ENTITY delta "δ"> - <!ENTITY epsilon "ε"> - <!ENTITY alpha "ζ"> - <!NOTATION notation1 PUBLIC "notation1File"> - <!NOTATION notation2 SYSTEM "notation2File"> - <!ATTLIST acronym dir CDATA "ltr"> -]> -<!-- This is comment number 1.--> -<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script charset="UTF-8" type="text/javascript" src="createAttributeNS06.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()"> - <p> - <em>EMP0001</em> - <strong>Margaret Martin</strong> - <code>Accountant</code> - <sup>56,000</sup> - <var>Female</var> - <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym> - </p> - <p> - <em>EMP0002</em> - <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &ent2; -This is an adjacent CDATASection with a reference to a tab &tab;</strong> - <code>Secretary</code> - <sup>35,000</sup> - <var>Female</var> - <acronym title="Yes" class="Yes">β Dallas, γ - 98554</acronym> - </p> - <p> - <em>EMP0003</em> - <strong>Roger - Jones</strong> - <code>Department Manager</code> - <sup>100,000</sup> - <var>δ</var> - <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym> - </p> - <p> - <em>EMP0004</em> - <strong>Jeny Oconnor</strong> - <code>Personnel Director</code> - <sup>95,000</sup> - <var>Female</var> - <acronym title="Yes" class="Yα">27 South Road. Dallas, Texas 98556</acronym> - </p> - <p> - <em>EMP0005</em> - <strong>Robert Myers</strong> - <code>Computer Specialist</code> - <sup>90,000</sup> - <var>male</var> - <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym> - </p> -</body></html> diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/attrisid06.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/attrisid06.js index 7ca4f64..f699e34 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/attrisid06.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/attrisid06.js @@ -93,7 +93,7 @@ function attrisid06() { docRef = this.doc; } doc = load(docRef, "doc", "hc_staff"); - attr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang"); + attr = doc.createAttribute("xml:lang"); id = attr.isId; assertFalse("AttrIsIDFalse06",id); diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentadoptnode03.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentadoptnode03.js index f786ae7..3893883 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentadoptnode03.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentadoptnode03.js @@ -101,7 +101,7 @@ function documentadoptnode03() { docRef = this.doc; } doc = load(docRef, "doc", "hc_staff"); - newAttr = doc.createAttributeNS(xmlNS,"xml:lang"); + newAttr = doc.createAttribute("xml:lang"); adoptedAttr = doc.adoptNode(newAttr); if( @@ -120,7 +120,6 @@ function documentadoptnode03() { isSpecified = adoptedAttr.specified; assertEquals("documentadoptode03_nodeName","xml:lang",nodeName); - assertEquals("documentadoptNode03_namespaceURI",xmlNS,nodeNamespaceURI); assertEquals("documentadoptnode03_prefix","xml",nodePrefix); assertNull("documentadoptnode03_ownerDoc",attrOwnerElem); assertTrue("documentadoptnode03_specified",isSpecified); diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentadoptnode04.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentadoptnode04.js index f6ffb2b..5158841 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentadoptnode04.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentadoptnode04.js @@ -116,7 +116,7 @@ function documentadoptnode04() { domImpl = doc.implementation; newDoc = domImpl.createDocument(rootNS,rootName,nullDocType); - newAttr = doc.createAttributeNS(xmlNS,"xml:lang"); + newAttr = doc.createAttribute("xml:lang"); adoptedAttr = newDoc.adoptNode(newAttr); if( @@ -135,7 +135,6 @@ newDoc = domImpl.createDocument(rootNS,rootName,nullDocType); isSpecified = adoptedAttr.specified; assertEquals("documentadoptnode04_nodeName","xml:lang",nodeName); - assertEquals("documentadoptnode04_namespaceURI",xmlNS,nodeNamespaceURI); assertEquals("documentadoptnode04_prefix","xml",nodePrefix); assertNull("documentadoptnode04_ownerDoc",attrOwnerElem); assertTrue("documentadoptnode04_specified",isSpecified); diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentadoptnode06.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentadoptnode06.js index 804b948..f4c94b8 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentadoptnode06.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentadoptnode06.js @@ -125,7 +125,7 @@ function documentadoptnode06() { domImpl = doc.implementation; newDoc = domImpl.createDocument(rootNS,rootName,nullDocType); - newAttr = doc.createAttributeNS(xmlNS,"xml:lang"); + newAttr = doc.createAttribute("xml:lang"); newText = doc.createTextNode("Text Node"); newEntRef = doc.createEntityReference("alpha"); appendedChild = newAttr.appendChild(newText); diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentrenamenode21.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentrenamenode21.js index 31050e91..50f7894 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentrenamenode21.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentrenamenode21.js @@ -110,7 +110,7 @@ function documentrenamenode21() { domImpl = doc.implementation; newDoc = domImpl.createDocument(rootNS,rootName,nullDocType); - attr = newDoc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang"); + attr = newDoc.createAttribute("xml:lang"); { success = false; diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentrenamenode22.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentrenamenode22.js index aef0474..f24c854 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentrenamenode22.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentrenamenode22.js @@ -95,7 +95,7 @@ function documentrenamenode22() { docRef = this.doc; } doc = load(docRef, "doc", "hc_staff"); - attr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang"); + attr = doc.createAttribute("xml:lang"); { success = false; diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentsetstricterrorchecking01.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentsetstricterrorchecking01.js index 03cb79e..6cdc1dd 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentsetstricterrorchecking01.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentsetstricterrorchecking01.js @@ -76,7 +76,7 @@ function loadComplete() { /** * Set the strictErrorChecking attribute value on this documentNode to false and then to true. - Call the createAttributeNS method on this document with an illegal character in the qualifiedName + Call the createAttribute method on this document with an illegal character in the qualifiedName and check if the INVALID_CHARACTER_ERR is thrown. * @author IBM @@ -102,7 +102,7 @@ function documentsetstricterrorchecking01() { { success = false; try { - newAttr = doc.createAttributeNS("http://www.w3.org/DOM/Test","@"); + newAttr = doc.createAttribute("@"); } catch(ex) { success = (typeof(ex.code) != 'undefined' && ex.code == 5); diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentsetstricterrorchecking02.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentsetstricterrorchecking02.js deleted file mode 100644 index 841a771..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentsetstricterrorchecking02.js +++ /dev/null @@ -1,120 +0,0 @@ - -/* -Copyright © 2001-2004 World Wide Web Consortium, -(Massachusetts Institute of Technology, European Research Consortium -for Informatics and Mathematics, Keio University). All -Rights Reserved. This work is distributed under the W3C® Software License [1] in the -hope that it will be useful, but WITHOUT ANY WARRANTY; without even -the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 -*/ - - - - /** - * Gets URI that identifies the test. - * @return uri identifier of test - */ -function getTargetURI() { - return "http://www.w3.org/2001/DOM-Test-Suite/level3/core/documentsetstricterrorchecking02"; - } - -var docsLoaded = -1000000; -var builder = null; - -// -// This function is called by the testing framework before -// running the test suite. -// -// If there are no configuration exceptions, asynchronous -// document loading is started. Otherwise, the status -// is set to complete and the exception is immediately -// raised when entering the body of the test. -// -function setUpPage() { - setUpPageStatus = 'running'; - try { - // - // creates test document builder, may throw exception - // - builder = createConfiguredBuilder(); - - docsLoaded = 0; - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - docsLoaded += preload(docRef, "doc", "hc_staff"); - - if (docsLoaded == 1) { - setUpPageStatus = 'complete'; - } - } catch(ex) { - catchInitializationError(builder, ex); - setUpPageStatus = 'complete'; - } -} - - - -// -// This method is called on the completion of -// each asychronous load started in setUpTests. -// -// When every synchronous loaded document has completed, -// the page status is changed which allows the -// body of the test to be executed. -function loadComplete() { - if (++docsLoaded == 1) { - setUpPageStatus = 'complete'; - } -} - - -/** -* - Set the strictErrorChecking attribute value on a new Document to true. - Call the createAttributeNS method on this document with a a null namespaceURI and a qualified name - with a prefix and check if the NAMESPACE_ERR is thrown. - -* @author IBM -* @author Neil Delima -* @see http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Document3-strictErrorChecking -*/ -function documentsetstricterrorchecking02() { - var success; - if(checkInitialization(builder, "documentsetstricterrorchecking02") != null) return; - var doc; - var newAttr; - var nullValue = null; - - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - doc = load(docRef, "doc", "hc_staff"); - doc.strictErrorChecking = true; - - - { - success = false; - try { - newAttr = doc.createAttributeNS(nullValue,"dom:test"); - } - catch(ex) { - success = (typeof(ex.code) != 'undefined' && ex.code == 14); - } - assertTrue("NAMESPACE_ERR_documentsetstricterrorchecking02",success); - } - -} - - - - -function runTest() { - documentsetstricterrorchecking02(); -} diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentsetstricterrorchecking02.xhtml b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentsetstricterrorchecking02.xhtml deleted file mode 100644 index 65e9a7e..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/documentsetstricterrorchecking02.xhtml +++ /dev/null @@ -1,73 +0,0 @@ -<?xml version="1.0"?><?TEST-STYLE PIDATA?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "xhtml1-strict.dtd" [ - <!ENTITY alpha "α"> - <!ENTITY beta "β"> - <!ENTITY gamma "γ"> - <!ENTITY delta "δ"> - <!ENTITY epsilon "ε"> - <!ENTITY alpha "ζ"> - <!NOTATION notation1 PUBLIC "notation1File"> - <!NOTATION notation2 SYSTEM "notation2File"> - <!ATTLIST p - dir CDATA 'rtl' - xmlns:dmstc CDATA #IMPLIED - xmlns:nm CDATA #IMPLIED - xmlns:emp2 CDATA #IMPLIED> - <!ATTLIST html - xmlns:xsi CDATA #IMPLIED - xsi:schemaLocation CDATA #IMPLIED> - <!ATTLIST acronym xsi:noNamespaceSchemaLocation CDATA #IMPLIED> - <!ENTITY ent4 "<span xmlns='http://www.w3.org/1999/xhtml'>Element data</span><?PItarget PIdata?>"> - <!ATTLIST span xmlns CDATA #IMPLIED> -]> -<!-- This is comment number 1.--> -<html xmlns='http://www.w3.org/1999/xhtml' - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/1999/xhtml hc_staff.xsd"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script charset="UTF-8" type="text/javascript" src="documentsetstricterrorchecking02.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()"> - <p xmlns:dmstc="http://www.usa.com"> - <em>EMP0001</em> - <strong>Margaret Martin</strong> - <code>Accountant</code> - <sup>56,000</sup> - <var>Female</var> - <acronym title="Yes" xsi:noNamespaceSchemaLocation="Yes">1230 North Ave. Dallas, Texas 98551</acronym> - </p> - <p xmlns:dmstc="http://www.usa.com"> - <em>EMP0002</em> - <strong>Martha Raynolds -<![CDATA[This is a CDATASection with EntityReference number 2 &ent2;]]> -<![CDATA[This is an adjacent CDATASection with a reference to a tab &tab;]]></strong> - <code>Secretary</code> - <sup>35,000</sup> - <var>Female</var> - <acronym title="Yes" class="Yes" xsi:noNamespaceSchemaLocation="Yes">β Dallas, γ - 98554</acronym> - </p> - <p xmlns:dmstc="http://www.netzero.com"> - <em>EMP0003</em> - <strong>Roger - Jones</strong> - <code>Department Manager</code> - <sup>100,000</sup> - <var>&ent4;</var> - <acronym title="Yes" class="No" id="_98553" xsi:noNamespaceSchemaLocation="Yes">PO Box 27 Irving, texas 98553</acronym> - </p> - <p xmlns:nm="http://www.altavista.com"> - <em>EMP0004</em> - <strong>Jeny Oconnor</strong> - <code>Personnel Director</code> - <sup>95,000</sup> - <var>Female</var> - <acronym title="Yes" class="Yα" id="_98556" xsi:noNamespaceSchemaLocation="Yes">27 South Road. Dallas, Texas 98556</acronym> - </p> - <p xmlns:emp2="http://www.nist.gov"> - <em>EMP0005</em> - <strong>Robert Myers</strong> - <code>Computer Specialist</code> - <sup>90,000</sup> - <var>male</var> - <acronym title="Yes" class="Yes" xsi:noNamespaceSchemaLocation="Yes">1821 Nordic. Road, Irving Texas 98558</acronym> - </p> -</body></html> diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition11.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition11.js index 11fe423..78956e5 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition11.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition11.js @@ -99,7 +99,7 @@ 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"); + newAttr = doc.createAttribute("xml:lang"); replacedAttr = elem.setAttributeNode(newAttr); attrPosition = newAttr.compareDocumentPosition(doc); assertEquals("nodecomparedocumentpositionPRECEDINGContains11",10,attrPosition); diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition15.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition15.js index e09fd31..d127591 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition15.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodecomparedocumentposition15.js @@ -103,7 +103,7 @@ function nodecomparedocumentposition15() { docElem = doc.documentElement; docFrag = doc.createDocumentFragment(); - attr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang"); + attr = doc.createAttribute("xml:lang"); attrNode = docElem.setAttributeNode(attr); appendedChild = docFrag.appendChild(docElem); docFragChild = docFrag.firstChild; diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodegettextcontent08.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodegettextcontent08.js deleted file mode 100644 index 91c046d..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodegettextcontent08.js +++ /dev/null @@ -1,116 +0,0 @@ - -/* -Copyright © 2001-2004 World Wide Web Consortium, -(Massachusetts Institute of Technology, European Research Consortium -for Informatics and Mathematics, Keio University). All -Rights Reserved. This work is distributed under the W3C® Software License [1] in the -hope that it will be useful, but WITHOUT ANY WARRANTY; without even -the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 -*/ - - - - /** - * Gets URI that identifies the test. - * @return uri identifier of test - */ -function getTargetURI() { - return "http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodegettextcontent08"; - } - -var docsLoaded = -1000000; -var builder = null; - -// -// This function is called by the testing framework before -// running the test suite. -// -// If there are no configuration exceptions, asynchronous -// document loading is started. Otherwise, the status -// is set to complete and the exception is immediately -// raised when entering the body of the test. -// -function setUpPage() { - setUpPageStatus = 'running'; - try { - // - // creates test document builder, may throw exception - // - builder = createConfiguredBuilder(); - - docsLoaded = 0; - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - docsLoaded += preload(docRef, "doc", "barfoo"); - - if (docsLoaded == 1) { - setUpPageStatus = 'complete'; - } - } catch(ex) { - catchInitializationError(builder, ex); - setUpPageStatus = 'complete'; - } -} - - - -// -// This method is called on the completion of -// each asychronous load started in setUpTests. -// -// When every synchronous loaded document has completed, -// the page status is changed which allows the -// body of the test to be executed. -function loadComplete() { - if (++docsLoaded == 1) { - setUpPageStatus = 'complete'; - } -} - - -/** -* - Invoke the method getTextContent on a new Attr node and check if the value returned - is the attributes Value. - -* @author IBM -* @author Neil Delima -* @see http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Node3-textContent -*/ -function nodegettextcontent08() { - var success; - if(checkInitialization(builder, "nodegettextcontent08") != null) return; - var doc; - var elemList; - var elem; - var att; - var attr; - var replacedAttr; - var textContent; - - 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","p"); - att = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang"); - replacedAttr = elem.setAttributeNode(att); - attr = elem.getAttributeNodeNS("http://www.w3.org/XML/1998/namespace","lang"); - textContent = attr.textContent; - - assertEquals("nodegettextcontent08","",textContent); - -} - - - - -function runTest() { - nodegettextcontent08(); -} diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodegettextcontent08.xhtml b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodegettextcontent08.xhtml deleted file mode 100644 index 8aac241..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodegettextcontent08.xhtml +++ /dev/null @@ -1,25 +0,0 @@ -<!DOCTYPE html [ -<!ENTITY ent1 'foo'> -<!ENTITY ent2 'foo<br/>'> -<!ELEMENT html (head, body)> -<!ATTLIST html xmlns CDATA #IMPLIED> -<!ELEMENT head (title,script*)> -<!ELEMENT script (#PCDATA)> -<!ATTLIST script - src CDATA #IMPLIED - type CDATA #IMPLIED - charset CDATA #IMPLIED> -<!ELEMENT title (#PCDATA)> -<!ELEMENT body (p)> -<!ATTLIST body onload CDATA #IMPLIED> -<!ELEMENT p (#PCDATA|br)*> -<!ELEMENT br EMPTY> -]> -<html xmlns='http://www.w3.org/1999/xhtml'> -<head> -<title>replaceWholeText sample</title> -<script type='text/javascript' src='selfxhtml.js'></script><script charset='UTF-8' type='text/javascript' src='nodegettextcontent08.js'></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head> -<body onload="loadComplete()"> -<p>bar</p> -</body> -</html> diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeinsertbefore03.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeinsertbefore03.js index 7a68a71..318696e 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeinsertbefore03.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeinsertbefore03.js @@ -97,7 +97,7 @@ function nodeinsertbefore03() { doc = load(docRef, "doc", "hc_staff"); docType = doc.doctype; - newAttr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang"); + newAttr = doc.createAttribute("xml:lang"); { success = false; diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeinsertbefore14.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeinsertbefore14.js index 834daf9..0ab4930 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeinsertbefore14.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeinsertbefore14.js @@ -103,7 +103,7 @@ function nodeinsertbefore14() { doc = load(docRef, "doc", "hc_staff"); docType = doc.doctype; - newAttr = doc.createAttributeNS("http://www.w3.org/DOM/Test","dom3:attr"); + newAttr = doc.createAttribute("dom3:attr"); { success = false; diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeinsertbefore20.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeinsertbefore20.js index 8dabffb0..4947a54 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeinsertbefore20.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeinsertbefore20.js @@ -101,7 +101,7 @@ function nodeinsertbefore20() { element = childList.item(2); refNode = element.firstChild; - newNode = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang"); + newNode = doc.createAttribute("xml:lang"); { success = false; diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace16.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace16.js deleted file mode 100644 index fe1afc6..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace16.js +++ /dev/null @@ -1,109 +0,0 @@ - -/* -Copyright © 2001-2004 World Wide Web Consortium, -(Massachusetts Institute of Technology, European Research Consortium -for Informatics and Mathematics, Keio University). All -Rights Reserved. This work is distributed under the W3C® Software License [1] in the -hope that it will be useful, but WITHOUT ANY WARRANTY; without even -the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 -*/ - - - - /** - * Gets URI that identifies the test. - * @return uri identifier of test - */ -function getTargetURI() { - return "http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeisdefaultnamespace16"; - } - -var docsLoaded = -1000000; -var builder = null; - -// -// This function is called by the testing framework before -// running the test suite. -// -// If there are no configuration exceptions, asynchronous -// document loading is started. Otherwise, the status -// is set to complete and the exception is immediately -// raised when entering the body of the test. -// -function setUpPage() { - setUpPageStatus = 'running'; - try { - // - // creates test document builder, may throw exception - // - builder = createConfiguredBuilder(); - - docsLoaded = 0; - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - docsLoaded += preload(docRef, "doc", "barfoo"); - - if (docsLoaded == 1) { - setUpPageStatus = 'complete'; - } - } catch(ex) { - catchInitializationError(builder, ex); - setUpPageStatus = 'complete'; - } -} - - - -// -// This method is called on the completion of -// each asychronous load started in setUpTests. -// -// When every synchronous loaded document has completed, -// the page status is changed which allows the -// body of the test to be executed. -function loadComplete() { - if (++docsLoaded == 1) { - setUpPageStatus = 'complete'; - } -} - - -/** -* - 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-isDefaultNamespace -*/ -function nodeisdefaultnamespace16() { - var success; - if(checkInitialization(builder, "nodeisdefaultnamespace16") != null) return; - var doc; - var attr; - var isDefault; - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - doc = load(docRef, "doc", "barfoo"); - attr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","lang"); - isDefault = attr.isDefaultNamespace("http://www.w3.org/XML/1998/namespace"); - assertFalse("nodeisdefaultnamespace16",isDefault); - -} - - - - -function runTest() { - nodeisdefaultnamespace16(); -} diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace16.xhtml b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace16.xhtml deleted file mode 100644 index 36b7dc4..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace16.xhtml +++ /dev/null @@ -1,25 +0,0 @@ -<!DOCTYPE html [ -<!ENTITY ent1 'foo'> -<!ENTITY ent2 'foo<br/>'> -<!ELEMENT html (head, body)> -<!ATTLIST html xmlns CDATA #IMPLIED> -<!ELEMENT head (title,script*)> -<!ELEMENT script (#PCDATA)> -<!ATTLIST script - src CDATA #IMPLIED - type CDATA #IMPLIED - charset CDATA #IMPLIED> -<!ELEMENT title (#PCDATA)> -<!ELEMENT body (p)> -<!ATTLIST body onload CDATA #IMPLIED> -<!ELEMENT p (#PCDATA|br)*> -<!ELEMENT br EMPTY> -]> -<html xmlns='http://www.w3.org/1999/xhtml'> -<head> -<title>replaceWholeText sample</title> -<script type='text/javascript' src='selfxhtml.js'></script><script charset='UTF-8' type='text/javascript' src='nodeisdefaultnamespace16.js'></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head> -<body onload="loadComplete()"> -<p>bar</p> -</body> -</html> diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode14.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode14.js deleted file mode 100644 index c7749b7..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode14.js +++ /dev/null @@ -1,115 +0,0 @@ - -/* -Copyright © 2001-2004 World Wide Web Consortium, -(Massachusetts Institute of Technology, European Research Consortium -for Informatics and Mathematics, Keio University). All -Rights Reserved. This work is distributed under the W3C® Software License [1] in the -hope that it will be useful, but WITHOUT ANY WARRANTY; without even -the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 -*/ - - - - /** - * Gets URI that identifies the test. - * @return uri identifier of test - */ -function getTargetURI() { - return "http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeisequalnode14"; - } - -var docsLoaded = -1000000; -var builder = null; - -// -// This function is called by the testing framework before -// running the test suite. -// -// If there are no configuration exceptions, asynchronous -// document loading is started. Otherwise, the status -// is set to complete and the exception is immediately -// raised when entering the body of the test. -// -function setUpPage() { - setUpPageStatus = 'running'; - try { - // - // creates test document builder, may throw exception - // - builder = createConfiguredBuilder(); - - docsLoaded = 0; - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - docsLoaded += preload(docRef, "doc", "hc_staff"); - - if (docsLoaded == 1) { - setUpPageStatus = 'complete'; - } - } catch(ex) { - catchInitializationError(builder, ex); - setUpPageStatus = 'complete'; - } -} - - - -// -// This method is called on the completion of -// each asychronous load started in setUpTests. -// -// When every synchronous loaded document has completed, -// the page status is changed which allows the -// body of the test to be executed. -function loadComplete() { - if (++docsLoaded == 1) { - setUpPageStatus = 'complete'; - } -} - - -/** -* - - - Using isEqualNode check if 2 Attr nodes having the same nodeName and a null namespaceURI - attribute, one created using createAttribute and the other createAttributeNS, are not equal. - Note the localName for an Attr created with DOM Level 1 methods is null. - -* @author IBM -* @author Neil Delima -* @see http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Node3-isEqualNode -*/ -function nodeisequalnode14() { - var success; - if(checkInitialization(builder, "nodeisequalnode14") != null) return; - var doc; - var attr1; - var attr2; - var isEqual; - var nullNSURI = null; - - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - doc = load(docRef, "doc", "hc_staff"); - attr1 = doc.createAttribute("root"); - attr2 = doc.createAttributeNS(nullNSURI,"root"); - isEqual = attr1.isEqualNode(attr2); - assertFalse("nodeisequalnode14",isEqual); - -} - - - - -function runTest() { - nodeisequalnode14(); -} diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode14.xhtml b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode14.xhtml deleted file mode 100644 index b7034c7..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode14.xhtml +++ /dev/null @@ -1,73 +0,0 @@ -<?xml version="1.0"?><?TEST-STYLE PIDATA?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "xhtml1-strict.dtd" [ - <!ENTITY alpha "α"> - <!ENTITY beta "β"> - <!ENTITY gamma "γ"> - <!ENTITY delta "δ"> - <!ENTITY epsilon "ε"> - <!ENTITY alpha "ζ"> - <!NOTATION notation1 PUBLIC "notation1File"> - <!NOTATION notation2 SYSTEM "notation2File"> - <!ATTLIST p - dir CDATA 'rtl' - xmlns:dmstc CDATA #IMPLIED - xmlns:nm CDATA #IMPLIED - xmlns:emp2 CDATA #IMPLIED> - <!ATTLIST html - xmlns:xsi CDATA #IMPLIED - xsi:schemaLocation CDATA #IMPLIED> - <!ATTLIST acronym xsi:noNamespaceSchemaLocation CDATA #IMPLIED> - <!ENTITY ent4 "<span xmlns='http://www.w3.org/1999/xhtml'>Element data</span><?PItarget PIdata?>"> - <!ATTLIST span xmlns CDATA #IMPLIED> -]> -<!-- This is comment number 1.--> -<html xmlns='http://www.w3.org/1999/xhtml' - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/1999/xhtml hc_staff.xsd"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script charset="UTF-8" type="text/javascript" src="nodeisequalnode14.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()"> - <p xmlns:dmstc="http://www.usa.com"> - <em>EMP0001</em> - <strong>Margaret Martin</strong> - <code>Accountant</code> - <sup>56,000</sup> - <var>Female</var> - <acronym title="Yes" xsi:noNamespaceSchemaLocation="Yes">1230 North Ave. Dallas, Texas 98551</acronym> - </p> - <p xmlns:dmstc="http://www.usa.com"> - <em>EMP0002</em> - <strong>Martha Raynolds -<![CDATA[This is a CDATASection with EntityReference number 2 &ent2;]]> -<![CDATA[This is an adjacent CDATASection with a reference to a tab &tab;]]></strong> - <code>Secretary</code> - <sup>35,000</sup> - <var>Female</var> - <acronym title="Yes" class="Yes" xsi:noNamespaceSchemaLocation="Yes">β Dallas, γ - 98554</acronym> - </p> - <p xmlns:dmstc="http://www.netzero.com"> - <em>EMP0003</em> - <strong>Roger - Jones</strong> - <code>Department Manager</code> - <sup>100,000</sup> - <var>&ent4;</var> - <acronym title="Yes" class="No" id="_98553" xsi:noNamespaceSchemaLocation="Yes">PO Box 27 Irving, texas 98553</acronym> - </p> - <p xmlns:nm="http://www.altavista.com"> - <em>EMP0004</em> - <strong>Jeny Oconnor</strong> - <code>Personnel Director</code> - <sup>95,000</sup> - <var>Female</var> - <acronym title="Yes" class="Yα" id="_98556" xsi:noNamespaceSchemaLocation="Yes">27 South Road. Dallas, Texas 98556</acronym> - </p> - <p xmlns:emp2="http://www.nist.gov"> - <em>EMP0005</em> - <strong>Robert Myers</strong> - <code>Computer Specialist</code> - <sup>90,000</sup> - <var>male</var> - <acronym title="Yes" class="Yes" xsi:noNamespaceSchemaLocation="Yes">1821 Nordic. Road, Irving Texas 98558</acronym> - </p> -</body></html> diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode15.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode15.js deleted file mode 100644 index b880392..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode15.js +++ /dev/null @@ -1,130 +0,0 @@ - -/* -Copyright © 2001-2004 World Wide Web Consortium, -(Massachusetts Institute of Technology, European Research Consortium -for Informatics and Mathematics, Keio University). All -Rights Reserved. This work is distributed under the W3C® Software License [1] in the -hope that it will be useful, but WITHOUT ANY WARRANTY; without even -the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 -*/ - - - - /** - * Gets URI that identifies the test. - * @return uri identifier of test - */ -function getTargetURI() { - return "http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeisequalnode15"; - } - -var docsLoaded = -1000000; -var builder = null; - -// -// This function is called by the testing framework before -// running the test suite. -// -// If there are no configuration exceptions, asynchronous -// document loading is started. Otherwise, the status -// is set to complete and the exception is immediately -// raised when entering the body of the test. -// -function setUpPage() { - setUpPageStatus = 'running'; - try { - // - // creates test document builder, may throw exception - // - builder = createConfiguredBuilder(); - - docsLoaded = 0; - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - docsLoaded += preload(docRef, "doc", "hc_staff"); - - if (docsLoaded == 1) { - setUpPageStatus = 'complete'; - } - } catch(ex) { - catchInitializationError(builder, ex); - setUpPageStatus = 'complete'; - } -} - - - -// -// This method is called on the completion of -// each asychronous load started in setUpTests. -// -// When every synchronous loaded document has completed, -// the page status is changed which allows the -// body of the test to be executed. -function loadComplete() { - if (++docsLoaded == 1) { - setUpPageStatus = 'complete'; - } -} - - -/** -* - Using isEqualNode check if 2 Attr nodes having the same nodeName and a null namespaceURI - attribute, one created using createAttributeNS and the other retreived from this document - are equal. - -* @author IBM -* @author Neil Delima -* @see http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Node3-isEqualNode -*/ -function nodeisequalnode15() { - var success; - if(checkInitialization(builder, "nodeisequalnode15") != null) return; - var doc; - var attr1; - var attr2; - var addrElement; - var elementList; - var isEqual; - var nullNS = null; - - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - doc = load(docRef, "doc", "hc_staff"); - elementList = doc.getElementsByTagName("acronym"); - addrElement = elementList.item(3); - attr1 = addrElement.getAttributeNodeNS(nullNS,"title"); - - if( - (getImplementationAttribute("namespaceAware") == true) - ) { - attr2 = doc.createAttributeNS(nullNS,"title"); - - } - - else { - attr2 = doc.createAttribute("title"); - - } - attr2.value = "Yes"; - - isEqual = attr1.isEqualNode(attr2); - assertTrue("nodeisequalnode15",isEqual); - -} - - - - -function runTest() { - nodeisequalnode15(); -} diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode15.xhtml b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode15.xhtml deleted file mode 100644 index 941b11f..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode15.xhtml +++ /dev/null @@ -1,73 +0,0 @@ -<?xml version="1.0"?><?TEST-STYLE PIDATA?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "xhtml1-strict.dtd" [ - <!ENTITY alpha "α"> - <!ENTITY beta "β"> - <!ENTITY gamma "γ"> - <!ENTITY delta "δ"> - <!ENTITY epsilon "ε"> - <!ENTITY alpha "ζ"> - <!NOTATION notation1 PUBLIC "notation1File"> - <!NOTATION notation2 SYSTEM "notation2File"> - <!ATTLIST p - dir CDATA 'rtl' - xmlns:dmstc CDATA #IMPLIED - xmlns:nm CDATA #IMPLIED - xmlns:emp2 CDATA #IMPLIED> - <!ATTLIST html - xmlns:xsi CDATA #IMPLIED - xsi:schemaLocation CDATA #IMPLIED> - <!ATTLIST acronym xsi:noNamespaceSchemaLocation CDATA #IMPLIED> - <!ENTITY ent4 "<span xmlns='http://www.w3.org/1999/xhtml'>Element data</span><?PItarget PIdata?>"> - <!ATTLIST span xmlns CDATA #IMPLIED> -]> -<!-- This is comment number 1.--> -<html xmlns='http://www.w3.org/1999/xhtml' - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/1999/xhtml hc_staff.xsd"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script charset="UTF-8" type="text/javascript" src="nodeisequalnode15.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()"> - <p xmlns:dmstc="http://www.usa.com"> - <em>EMP0001</em> - <strong>Margaret Martin</strong> - <code>Accountant</code> - <sup>56,000</sup> - <var>Female</var> - <acronym title="Yes" xsi:noNamespaceSchemaLocation="Yes">1230 North Ave. Dallas, Texas 98551</acronym> - </p> - <p xmlns:dmstc="http://www.usa.com"> - <em>EMP0002</em> - <strong>Martha Raynolds -<![CDATA[This is a CDATASection with EntityReference number 2 &ent2;]]> -<![CDATA[This is an adjacent CDATASection with a reference to a tab &tab;]]></strong> - <code>Secretary</code> - <sup>35,000</sup> - <var>Female</var> - <acronym title="Yes" class="Yes" xsi:noNamespaceSchemaLocation="Yes">β Dallas, γ - 98554</acronym> - </p> - <p xmlns:dmstc="http://www.netzero.com"> - <em>EMP0003</em> - <strong>Roger - Jones</strong> - <code>Department Manager</code> - <sup>100,000</sup> - <var>&ent4;</var> - <acronym title="Yes" class="No" id="_98553" xsi:noNamespaceSchemaLocation="Yes">PO Box 27 Irving, texas 98553</acronym> - </p> - <p xmlns:nm="http://www.altavista.com"> - <em>EMP0004</em> - <strong>Jeny Oconnor</strong> - <code>Personnel Director</code> - <sup>95,000</sup> - <var>Female</var> - <acronym title="Yes" class="Yα" id="_98556" xsi:noNamespaceSchemaLocation="Yes">27 South Road. Dallas, Texas 98556</acronym> - </p> - <p xmlns:emp2="http://www.nist.gov"> - <em>EMP0005</em> - <strong>Robert Myers</strong> - <code>Computer Specialist</code> - <sup>90,000</sup> - <var>male</var> - <acronym title="Yes" class="Yes" xsi:noNamespaceSchemaLocation="Yes">1821 Nordic. Road, Irving Texas 98558</acronym> - </p> -</body></html> diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode17.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode17.js index 31ddaeb..6686294 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode17.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode17.js @@ -112,7 +112,7 @@ function nodeisequalnode17() { domImpl = doc.implementation; newDoc = domImpl.createDocument(rootNS,rootName,nullDocType); - attr1 = doc.createAttributeNS(nullNSURI,"root"); + attr1 = doc.createAttribute("root"); attr2 = newDoc.importNode(attr1,true); isEqual = attr1.isEqualNode(attr2); assertTrue("nodeisequalnode17",isEqual); diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode18.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode18.js index 0d03ca5..a177260 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode18.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode18.js @@ -112,7 +112,7 @@ function nodeisequalnode18() { domImpl = doc.implementation; newDoc = domImpl.createDocument(rootNS,rootName,nullDocType); - attr1 = doc.createAttributeNS(nullNSURI,"title"); + attr1 = doc.createAttribute("title"); attr2 = newDoc.adoptNode(attr1); if( diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode19.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode19.js deleted file mode 100644 index dc0ba7b..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode19.js +++ /dev/null @@ -1,114 +0,0 @@ - -/* -Copyright © 2001-2004 World Wide Web Consortium, -(Massachusetts Institute of Technology, European Research Consortium -for Informatics and Mathematics, Keio University). All -Rights Reserved. This work is distributed under the W3C® Software License [1] in the -hope that it will be useful, but WITHOUT ANY WARRANTY; without even -the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 -*/ - - - - /** - * Gets URI that identifies the test. - * @return uri identifier of test - */ -function getTargetURI() { - return "http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeisequalnode19"; - } - -var docsLoaded = -1000000; -var builder = null; - -// -// This function is called by the testing framework before -// running the test suite. -// -// If there are no configuration exceptions, asynchronous -// document loading is started. Otherwise, the status -// is set to complete and the exception is immediately -// raised when entering the body of the test. -// -function setUpPage() { - setUpPageStatus = 'running'; - try { - // - // creates test document builder, may throw exception - // - builder = createConfiguredBuilder(); - - docsLoaded = 0; - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - docsLoaded += preload(docRef, "doc", "hc_staff"); - - if (docsLoaded == 1) { - setUpPageStatus = 'complete'; - } - } catch(ex) { - catchInitializationError(builder, ex); - setUpPageStatus = 'complete'; - } -} - - - -// -// This method is called on the completion of -// each asychronous load started in setUpTests. -// -// When every synchronous loaded document has completed, -// the page status is changed which allows the -// body of the test to be executed. -function loadComplete() { - if (++docsLoaded == 1) { - setUpPageStatus = 'complete'; - } -} - - -/** -* - - - Using isEqualNode check if 2 Attr nodes having the same nodeName but different namespaceURIs - are not equal. - -* @author IBM -* @author Neil Delima -* @see http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Node3-isEqualNode -*/ -function nodeisequalnode19() { - var success; - if(checkInitialization(builder, "nodeisequalnode19") != null) return; - var doc; - var attr1; - var attr2; - var isEqual; - var nullNSURI = null; - - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - doc = load(docRef, "doc", "hc_staff"); - attr1 = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","lang"); - attr2 = doc.createAttributeNS(nullNSURI,"lang"); - isEqual = attr1.isEqualNode(attr2); - assertFalse("nodeisequalnode19",isEqual); - -} - - - - -function runTest() { - nodeisequalnode19(); -} diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode19.xhtml b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode19.xhtml deleted file mode 100644 index 612894b..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode19.xhtml +++ /dev/null @@ -1,73 +0,0 @@ -<?xml version="1.0"?><?TEST-STYLE PIDATA?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "xhtml1-strict.dtd" [ - <!ENTITY alpha "α"> - <!ENTITY beta "β"> - <!ENTITY gamma "γ"> - <!ENTITY delta "δ"> - <!ENTITY epsilon "ε"> - <!ENTITY alpha "ζ"> - <!NOTATION notation1 PUBLIC "notation1File"> - <!NOTATION notation2 SYSTEM "notation2File"> - <!ATTLIST p - dir CDATA 'rtl' - xmlns:dmstc CDATA #IMPLIED - xmlns:nm CDATA #IMPLIED - xmlns:emp2 CDATA #IMPLIED> - <!ATTLIST html - xmlns:xsi CDATA #IMPLIED - xsi:schemaLocation CDATA #IMPLIED> - <!ATTLIST acronym xsi:noNamespaceSchemaLocation CDATA #IMPLIED> - <!ENTITY ent4 "<span xmlns='http://www.w3.org/1999/xhtml'>Element data</span><?PItarget PIdata?>"> - <!ATTLIST span xmlns CDATA #IMPLIED> -]> -<!-- This is comment number 1.--> -<html xmlns='http://www.w3.org/1999/xhtml' - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/1999/xhtml hc_staff.xsd"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script charset="UTF-8" type="text/javascript" src="nodeisequalnode19.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()"> - <p xmlns:dmstc="http://www.usa.com"> - <em>EMP0001</em> - <strong>Margaret Martin</strong> - <code>Accountant</code> - <sup>56,000</sup> - <var>Female</var> - <acronym title="Yes" xsi:noNamespaceSchemaLocation="Yes">1230 North Ave. Dallas, Texas 98551</acronym> - </p> - <p xmlns:dmstc="http://www.usa.com"> - <em>EMP0002</em> - <strong>Martha Raynolds -<![CDATA[This is a CDATASection with EntityReference number 2 &ent2;]]> -<![CDATA[This is an adjacent CDATASection with a reference to a tab &tab;]]></strong> - <code>Secretary</code> - <sup>35,000</sup> - <var>Female</var> - <acronym title="Yes" class="Yes" xsi:noNamespaceSchemaLocation="Yes">β Dallas, γ - 98554</acronym> - </p> - <p xmlns:dmstc="http://www.netzero.com"> - <em>EMP0003</em> - <strong>Roger - Jones</strong> - <code>Department Manager</code> - <sup>100,000</sup> - <var>&ent4;</var> - <acronym title="Yes" class="No" id="_98553" xsi:noNamespaceSchemaLocation="Yes">PO Box 27 Irving, texas 98553</acronym> - </p> - <p xmlns:nm="http://www.altavista.com"> - <em>EMP0004</em> - <strong>Jeny Oconnor</strong> - <code>Personnel Director</code> - <sup>95,000</sup> - <var>Female</var> - <acronym title="Yes" class="Yα" id="_98556" xsi:noNamespaceSchemaLocation="Yes">27 South Road. Dallas, Texas 98556</acronym> - </p> - <p xmlns:emp2="http://www.nist.gov"> - <em>EMP0005</em> - <strong>Robert Myers</strong> - <code>Computer Specialist</code> - <sup>90,000</sup> - <var>male</var> - <acronym title="Yes" class="Yes" xsi:noNamespaceSchemaLocation="Yes">1821 Nordic. Road, Irving Texas 98558</acronym> - </p> -</body></html> diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode20.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode20.js deleted file mode 100644 index ffc3684..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode20.js +++ /dev/null @@ -1,110 +0,0 @@ - -/* -Copyright © 2001-2004 World Wide Web Consortium, -(Massachusetts Institute of Technology, European Research Consortium -for Informatics and Mathematics, Keio University). All -Rights Reserved. This work is distributed under the W3C® Software License [1] in the -hope that it will be useful, but WITHOUT ANY WARRANTY; without even -the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 -*/ - - - - /** - * Gets URI that identifies the test. - * @return uri identifier of test - */ -function getTargetURI() { - return "http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeisequalnode20"; - } - -var docsLoaded = -1000000; -var builder = null; - -// -// This function is called by the testing framework before -// running the test suite. -// -// If there are no configuration exceptions, asynchronous -// document loading is started. Otherwise, the status -// is set to complete and the exception is immediately -// raised when entering the body of the test. -// -function setUpPage() { - setUpPageStatus = 'running'; - try { - // - // creates test document builder, may throw exception - // - builder = createConfiguredBuilder(); - - docsLoaded = 0; - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - docsLoaded += preload(docRef, "doc", "hc_staff"); - - if (docsLoaded == 1) { - setUpPageStatus = 'complete'; - } - } catch(ex) { - catchInitializationError(builder, ex); - setUpPageStatus = 'complete'; - } -} - - - -// -// This method is called on the completion of -// each asychronous load started in setUpTests. -// -// When every synchronous loaded document has completed, -// the page status is changed which allows the -// body of the test to be executed. -function loadComplete() { - if (++docsLoaded == 1) { - setUpPageStatus = 'complete'; - } -} - - -/** -* - Using isEqualNode check if an Element and an Attr nodes having the same nodeName - and namsepaceURI are not equal. - -* @author IBM -* @author Neil Delima -* @see http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Node3-isEqualNode -*/ -function nodeisequalnode20() { - var success; - if(checkInitialization(builder, "nodeisequalnode20") != null) return; - var doc; - var attr1; - var elem1; - var isEqual; - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - doc = load(docRef, "doc", "hc_staff"); - elem1 = doc.createElementNS("http://www.w3.org/1999/xhtml","xhtml:html"); - attr1 = doc.createAttributeNS("http://www.w3.org/1999/xhtml","xhtml:html"); - isEqual = attr1.isEqualNode(elem1); - assertFalse("nodeisequalnode20",isEqual); - -} - - - - -function runTest() { - nodeisequalnode20(); -} diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode20.xhtml b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode20.xhtml deleted file mode 100644 index ff81c1f..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodeisequalnode20.xhtml +++ /dev/null @@ -1,73 +0,0 @@ -<?xml version="1.0"?><?TEST-STYLE PIDATA?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "xhtml1-strict.dtd" [ - <!ENTITY alpha "α"> - <!ENTITY beta "β"> - <!ENTITY gamma "γ"> - <!ENTITY delta "δ"> - <!ENTITY epsilon "ε"> - <!ENTITY alpha "ζ"> - <!NOTATION notation1 PUBLIC "notation1File"> - <!NOTATION notation2 SYSTEM "notation2File"> - <!ATTLIST p - dir CDATA 'rtl' - xmlns:dmstc CDATA #IMPLIED - xmlns:nm CDATA #IMPLIED - xmlns:emp2 CDATA #IMPLIED> - <!ATTLIST html - xmlns:xsi CDATA #IMPLIED - xsi:schemaLocation CDATA #IMPLIED> - <!ATTLIST acronym xsi:noNamespaceSchemaLocation CDATA #IMPLIED> - <!ENTITY ent4 "<span xmlns='http://www.w3.org/1999/xhtml'>Element data</span><?PItarget PIdata?>"> - <!ATTLIST span xmlns CDATA #IMPLIED> -]> -<!-- This is comment number 1.--> -<html xmlns='http://www.w3.org/1999/xhtml' - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/1999/xhtml hc_staff.xsd"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script charset="UTF-8" type="text/javascript" src="nodeisequalnode20.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()"> - <p xmlns:dmstc="http://www.usa.com"> - <em>EMP0001</em> - <strong>Margaret Martin</strong> - <code>Accountant</code> - <sup>56,000</sup> - <var>Female</var> - <acronym title="Yes" xsi:noNamespaceSchemaLocation="Yes">1230 North Ave. Dallas, Texas 98551</acronym> - </p> - <p xmlns:dmstc="http://www.usa.com"> - <em>EMP0002</em> - <strong>Martha Raynolds -<![CDATA[This is a CDATASection with EntityReference number 2 &ent2;]]> -<![CDATA[This is an adjacent CDATASection with a reference to a tab &tab;]]></strong> - <code>Secretary</code> - <sup>35,000</sup> - <var>Female</var> - <acronym title="Yes" class="Yes" xsi:noNamespaceSchemaLocation="Yes">β Dallas, γ - 98554</acronym> - </p> - <p xmlns:dmstc="http://www.netzero.com"> - <em>EMP0003</em> - <strong>Roger - Jones</strong> - <code>Department Manager</code> - <sup>100,000</sup> - <var>&ent4;</var> - <acronym title="Yes" class="No" id="_98553" xsi:noNamespaceSchemaLocation="Yes">PO Box 27 Irving, texas 98553</acronym> - </p> - <p xmlns:nm="http://www.altavista.com"> - <em>EMP0004</em> - <strong>Jeny Oconnor</strong> - <code>Personnel Director</code> - <sup>95,000</sup> - <var>Female</var> - <acronym title="Yes" class="Yα" id="_98556" xsi:noNamespaceSchemaLocation="Yes">27 South Road. Dallas, Texas 98556</acronym> - </p> - <p xmlns:emp2="http://www.nist.gov"> - <em>EMP0005</em> - <strong>Robert Myers</strong> - <code>Computer Specialist</code> - <sup>90,000</sup> - <var>male</var> - <acronym title="Yes" class="Yes" xsi:noNamespaceSchemaLocation="Yes">1821 Nordic. Road, Irving Texas 98558</acronym> - </p> -</body></html> diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri16.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri16.js deleted file mode 100644 index 5359581..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri16.js +++ /dev/null @@ -1,113 +0,0 @@ - -/* -Copyright © 2001-2004 World Wide Web Consortium, -(Massachusetts Institute of Technology, European Research Consortium -for Informatics and Mathematics, Keio University). All -Rights Reserved. This work is distributed under the W3C® Software License [1] in the -hope that it will be useful, but WITHOUT ANY WARRANTY; without even -the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 -*/ - - - - /** - * Gets URI that identifies the test. - * @return uri identifier of test - */ -function getTargetURI() { - return "http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodelookupnamespaceuri16"; - } - -var docsLoaded = -1000000; -var builder = null; - -// -// This function is called by the testing framework before -// running the test suite. -// -// If there are no configuration exceptions, asynchronous -// document loading is started. Otherwise, the status -// is set to complete and the exception is immediately -// raised when entering the body of the test. -// -function setUpPage() { - setUpPageStatus = 'running'; - try { - // - // creates test document builder, may throw exception - // - builder = createConfiguredBuilder(); - setImplementationAttribute("namespaceAware", true); - - docsLoaded = 0; - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - docsLoaded += preload(docRef, "doc", "hc_staff"); - - if (docsLoaded == 1) { - setUpPageStatus = 'complete'; - } - } catch(ex) { - catchInitializationError(builder, ex); - setUpPageStatus = 'complete'; - } -} - - - -// -// This method is called on the completion of -// each asychronous load started in setUpTests. -// -// When every synchronous loaded document has completed, -// the page status is changed which allows the -// body of the test to be executed. -function loadComplete() { - if (++docsLoaded == 1) { - setUpPageStatus = 'complete'; - } -} - - -/** -* - Invoke lookupNamespaceURI on a new Attribute node with with a namespace URI - and prefix and verify if the namespaceURI returned is null. - -* @author IBM -* @author Neil Delima -* @see http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Node3-lookupNamespaceURI -*/ -function nodelookupnamespaceuri16() { - var success; - if(checkInitialization(builder, "nodelookupnamespaceuri16") != null) return; - var doc; - var elem; - var attr; - var attNode; - var namespaceURI; - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - doc = load(docRef, "doc", "hc_staff"); - elem = doc.createElementNS("http://www.w3.org/1999/xhtml","dom3:p"); - attr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang"); - attNode = elem.setAttributeNode(attr); - namespaceURI = attr.lookupNamespaceURI("xml"); - assertNull("nodelookupnamespaceuri16",namespaceURI); - -} - - - - -function runTest() { - nodelookupnamespaceuri16(); -} diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri16.xhtml b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri16.xhtml deleted file mode 100644 index db00a31..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri16.xhtml +++ /dev/null @@ -1,73 +0,0 @@ -<?xml version="1.0"?><?TEST-STYLE PIDATA?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "xhtml1-strict.dtd" [ - <!ENTITY alpha "α"> - <!ENTITY beta "β"> - <!ENTITY gamma "γ"> - <!ENTITY delta "δ"> - <!ENTITY epsilon "ε"> - <!ENTITY alpha "ζ"> - <!NOTATION notation1 PUBLIC "notation1File"> - <!NOTATION notation2 SYSTEM "notation2File"> - <!ATTLIST p - dir CDATA 'rtl' - xmlns:dmstc CDATA #IMPLIED - xmlns:nm CDATA #IMPLIED - xmlns:emp2 CDATA #IMPLIED> - <!ATTLIST html - xmlns:xsi CDATA #IMPLIED - xsi:schemaLocation CDATA #IMPLIED> - <!ATTLIST acronym xsi:noNamespaceSchemaLocation CDATA #IMPLIED> - <!ENTITY ent4 "<span xmlns='http://www.w3.org/1999/xhtml'>Element data</span><?PItarget PIdata?>"> - <!ATTLIST span xmlns CDATA #IMPLIED> -]> -<!-- This is comment number 1.--> -<html xmlns='http://www.w3.org/1999/xhtml' - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://www.w3.org/1999/xhtml hc_staff.xsd"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="selfxhtml.js"/><script charset="UTF-8" type="text/javascript" src="nodelookupnamespaceuri16.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="loadComplete()"> - <p xmlns:dmstc="http://www.usa.com"> - <em>EMP0001</em> - <strong>Margaret Martin</strong> - <code>Accountant</code> - <sup>56,000</sup> - <var>Female</var> - <acronym title="Yes" xsi:noNamespaceSchemaLocation="Yes">1230 North Ave. Dallas, Texas 98551</acronym> - </p> - <p xmlns:dmstc="http://www.usa.com"> - <em>EMP0002</em> - <strong>Martha Raynolds -<![CDATA[This is a CDATASection with EntityReference number 2 &ent2;]]> -<![CDATA[This is an adjacent CDATASection with a reference to a tab &tab;]]></strong> - <code>Secretary</code> - <sup>35,000</sup> - <var>Female</var> - <acronym title="Yes" class="Yes" xsi:noNamespaceSchemaLocation="Yes">β Dallas, γ - 98554</acronym> - </p> - <p xmlns:dmstc="http://www.netzero.com"> - <em>EMP0003</em> - <strong>Roger - Jones</strong> - <code>Department Manager</code> - <sup>100,000</sup> - <var>&ent4;</var> - <acronym title="Yes" class="No" id="_98553" xsi:noNamespaceSchemaLocation="Yes">PO Box 27 Irving, texas 98553</acronym> - </p> - <p xmlns:nm="http://www.altavista.com"> - <em>EMP0004</em> - <strong>Jeny Oconnor</strong> - <code>Personnel Director</code> - <sup>95,000</sup> - <var>Female</var> - <acronym title="Yes" class="Yα" id="_98556" xsi:noNamespaceSchemaLocation="Yes">27 South Road. Dallas, Texas 98556</acronym> - </p> - <p xmlns:emp2="http://www.nist.gov"> - <em>EMP0005</em> - <strong>Robert Myers</strong> - <code>Computer Specialist</code> - <sup>90,000</sup> - <var>male</var> - <acronym title="Yes" class="Yes" xsi:noNamespaceSchemaLocation="Yes">1821 Nordic. Road, Irving Texas 98558</acronym> - </p> -</body></html> diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodelookupprefix16.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodelookupprefix16.js deleted file mode 100644 index 4499ad3..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodelookupprefix16.js +++ /dev/null @@ -1,112 +0,0 @@ - -/* -Copyright © 2001-2004 World Wide Web Consortium, -(Massachusetts Institute of Technology, European Research Consortium -for Informatics and Mathematics, Keio University). All -Rights Reserved. This work is distributed under the W3C® Software License [1] in the -hope that it will be useful, but WITHOUT ANY WARRANTY; without even -the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 -*/ - - - - /** - * Gets URI that identifies the test. - * @return uri identifier of test - */ -function getTargetURI() { - return "http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodelookupprefix16"; - } - -var docsLoaded = -1000000; -var builder = null; - -// -// This function is called by the testing framework before -// running the test suite. -// -// If there are no configuration exceptions, asynchronous -// document loading is started. Otherwise, the status -// is set to complete and the exception is immediately -// raised when entering the body of the test. -// -function setUpPage() { - setUpPageStatus = 'running'; - try { - // - // creates test document builder, may throw exception - // - builder = createConfiguredBuilder(); - - docsLoaded = 0; - - var docRef = null; - if (typeof(this.doc) != 'undefined') { - docRef = this.doc; - } - docsLoaded += preload(docRef, "doc", "barfoo"); - - if (docsLoaded == 1) { - setUpPageStatus = 'complete'; - } - } catch(ex) { - catchInitializationError(builder, ex); - setUpPageStatus = 'complete'; - } -} - - - -// -// This method is called on the completion of -// each asychronous load started in setUpTests. -// -// When every synchronous loaded document has completed, -// the page status is changed which allows the -// body of the test to be executed. -function loadComplete() { - if (++docsLoaded == 1) { - setUpPageStatus = 'complete'; - } -} - - -/** -* - Invoke lookupPrefix on a new Attribute node with with a namespace URI - and prefix and verify if the prefix returned is null. - -* @author IBM -* @author Jenny Hsu -* @see http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Node3-lookupNamespacePrefix -*/ -function nodelookupprefix16() { - var success; - if(checkInitialization(builder, "nodelookupprefix16") != null) return; - var doc; - var elem; - var attr; - var prefix; - var attNode; - - 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","dom3:p"); - attr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang"); - attNode = elem.setAttributeNode(attr); - prefix = attr.lookupPrefix("http://www.w3.org/XML/1998/namespace"); - assertNull("nodelookupprefix16",prefix); - -} - - - - -function runTest() { - nodelookupprefix16(); -} diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodelookupprefix16.xhtml b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodelookupprefix16.xhtml deleted file mode 100644 index f088a4c..0000000 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodelookupprefix16.xhtml +++ /dev/null @@ -1,25 +0,0 @@ -<!DOCTYPE html [ -<!ENTITY ent1 'foo'> -<!ENTITY ent2 'foo<br/>'> -<!ELEMENT html (head, body)> -<!ATTLIST html xmlns CDATA #IMPLIED> -<!ELEMENT head (title,script*)> -<!ELEMENT script (#PCDATA)> -<!ATTLIST script - src CDATA #IMPLIED - type CDATA #IMPLIED - charset CDATA #IMPLIED> -<!ELEMENT title (#PCDATA)> -<!ELEMENT body (p)> -<!ATTLIST body onload CDATA #IMPLIED> -<!ELEMENT p (#PCDATA|br)*> -<!ELEMENT br EMPTY> -]> -<html xmlns='http://www.w3.org/1999/xhtml'> -<head> -<title>replaceWholeText sample</title> -<script type='text/javascript' src='selfxhtml.js'></script><script charset='UTF-8' type='text/javascript' src='nodelookupprefix16.js'></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head> -<body onload="loadComplete()"> -<p>bar</p> -</body> -</html> diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild20.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild20.js index a6cda64..94c073c 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild20.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild20.js @@ -100,7 +100,7 @@ function nodereplacechild20() { doc = load(docRef, "doc", "hc_staff"); docFrag = doc.createDocumentFragment(); elem = doc.createElementNS("http://www.w3.org/1999/xhtml","dom3:p"); - attr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang"); + attr = doc.createAttribute("xml:lang"); appendedChild = docFrag.appendChild(elem); { diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild34.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild34.js index 6f4a35a..0d3f160 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild34.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild34.js @@ -98,7 +98,7 @@ function nodereplacechild34() { docRef = this.doc; } doc = load(docRef, "doc", "hc_staff"); - parent = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang"); + parent = doc.createAttribute("xml:lang"); oldChild = doc.createEntityReference("delta"); appendedChild = parent.appendChild(oldChild); newChild = doc.createTextNode("Text"); diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild35.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild35.js index 1bae867..c159899 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild35.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild35.js @@ -98,10 +98,10 @@ function nodereplacechild35() { docRef = this.doc; } doc = load(docRef, "doc", "hc_staff"); - parent = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang"); + parent = doc.createAttribute("xml:lang"); oldChild = doc.createEntityReference("delta"); appendedChild = parent.appendChild(oldChild); - newChild = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang"); + newChild = doc.createAttribute("xml:lang"); { success = false; diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild36.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild36.js index fea225b..d912341 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild36.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild36.js @@ -97,7 +97,7 @@ function nodereplacechild36() { docRef = this.doc; } doc = load(docRef, "doc", "hc_staff"); - parent = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang"); + parent = doc.createAttribute("xml:lang"); oldChild = doc.createEntityReference("delta"); newChild = doc.createTextNode("Text"); diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild37.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild37.js index 4fd0264..1dc41c0 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild37.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodereplacechild37.js @@ -112,7 +112,7 @@ function nodereplacechild37() { doc2Ref = this.doc2; } doc2 = load(doc2Ref, "doc2", "hc_staff"); - parent = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang"); + parent = doc.createAttribute("xml:lang"); oldChild = doc.createTextNode("Text"); newChild = doc2.createEntityReference("delta"); appendedChild = parent.appendChild(oldChild); diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodesettextcontent06.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodesettextcontent06.js index 5c35ff3..dd5ff86 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodesettextcontent06.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/nodesettextcontent06.js @@ -100,7 +100,7 @@ function nodesettextcontent06() { } doc = load(docRef, "doc", "hc_staff"); elem = doc.createElementNS("http://www.w3.org/1999/xhtml","p"); - attr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang"); + attr = doc.createAttribute("xml:lang"); attrNode = elem.setAttributeNode(attr); attr.textContent = "NA"; diff --git a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/wellformed04.js b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/wellformed04.js index 79bf2a7..9628cc3 100644 --- a/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/wellformed04.js +++ b/third_party/WebKit/LayoutTests/dom/xhtml/level3/core/wellformed04.js @@ -105,7 +105,7 @@ doc = domImpl.createDocument("http://www.w3.org/1999/xhtml","html",nullDoctype); { success = false; try { - attr = doc.createAttributeNS(nullNS,"LegalNameࢎ"); + attr = doc.createAttribute("LegalNameࢎ"); } catch(ex) { success = (typeof(ex.code) != 'undefined' && ex.code == 5); diff --git a/third_party/WebKit/LayoutTests/fast/css/lang-mapped-to-webkit-locale-dynamic-expected.txt b/third_party/WebKit/LayoutTests/fast/css/lang-mapped-to-webkit-locale-dynamic-expected.txt index 52e138d..ca13f7c 100644 --- a/third_party/WebKit/LayoutTests/fast/css/lang-mapped-to-webkit-locale-dynamic-expected.txt +++ b/third_party/WebKit/LayoutTests/fast/css/lang-mapped-to-webkit-locale-dynamic-expected.txt @@ -14,9 +14,6 @@ PASS localeOfNode('x2') is "ja" PASS localeOfNode('x3') is "ar" PASS localeOfNode('x3') is "auto" PASS localeOfNode('x3') is "ja" -PASS localeOfNode('x2') is "zh" -PASS localeOfNode('x2') is "ja" -PASS localeOfNode('x2') is "ja" PASS successfullyParsed is true TEST COMPLETE diff --git a/third_party/WebKit/LayoutTests/fast/css/lang-mapped-to-webkit-locale-dynamic.xhtml b/third_party/WebKit/LayoutTests/fast/css/lang-mapped-to-webkit-locale-dynamic.xhtml index ca2f683..a80e96a 100644 --- a/third_party/WebKit/LayoutTests/fast/css/lang-mapped-to-webkit-locale-dynamic.xhtml +++ b/third_party/WebKit/LayoutTests/fast/css/lang-mapped-to-webkit-locale-dynamic.xhtml @@ -31,21 +31,6 @@ function runTest() { x3.removeAttribute("lang"); shouldBeEqualToString("localeOfNode('x3')", "ja"); - // The "lang" attribute in the XML namespace should affect locale (since this is an XHTML document). - var attr1 = document.createAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:lang"); - attr1.value = "zh"; - x2.setAttributeNode(attr1); - shouldBeEqualToString("localeOfNode('x2')", "zh"); - - x2.removeAttributeNode(attr1); - shouldBeEqualToString("localeOfNode('x2')", "ja"); - - // An attribute with local name "lang" not in the XML namespace should not affect locale. - var attr2 = document.createAttributeNS("foobar", "fb:lang"); - attr2.value = "ph"; - x2.setAttributeNode(attr2); - shouldBeEqualToString("localeOfNode('x2')", "ja"); - // If we include js-test-post.js directly, the "TEST COMPLETE" output comes out of order. wasPostTestScriptParsed = true; finishJSTest(); diff --git a/third_party/WebKit/LayoutTests/fast/dom/Document/createAttributeNS-namespace-err-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/Document/createAttributeNS-namespace-err-expected.txt deleted file mode 100644 index 06fbf9a..0000000 --- a/third_party/WebKit/LayoutTests/fast/dom/Document/createAttributeNS-namespace-err-expected.txt +++ /dev/null @@ -1,53 +0,0 @@ -createAttirbuteNS tests adapted from createElementNS tests attached to webkit bug 16833 - -On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". - - -PASS document.createAttributeNS().toString() is "[object Attr]" -PASS document.createAttributeNS("http://www.example.com").toString() is "[object Attr]" -PASS createAttributeNS(undefined, undefined) -PASS createAttributeNS(null, undefined) -PASS createAttributeNS(undefined, null); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided is empty. -PASS createAttributeNS(null, null); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided is empty. -PASS createAttributeNS(null, ""); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided is empty. -PASS createAttributeNS("", null); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided is empty. -PASS createAttributeNS("", ""); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided is empty. -PASS createAttributeNS(null, "<div>"); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('<div>') contains the invalid name-start character '<'. -PASS createAttributeNS(null, "0div"); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('0div') contains the invalid name-start character '0'. -PASS createAttributeNS(null, "di v"); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('di v') contains the invalid character ' '. -PASS createAttributeNS(null, "di<v"); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('di<v') contains the invalid character '<'. -PASS createAttributeNS(null, "-div"); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('-div') contains the invalid name-start character '-'. -PASS createAttributeNS(null, ".div"); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('.div') contains the invalid name-start character '.'. -PASS createAttributeNS("http://example.com/", "<div>"); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('<div>') contains the invalid name-start character '<'. -PASS createAttributeNS("http://example.com/", "0div"); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('0div') contains the invalid name-start character '0'. -PASS createAttributeNS("http://example.com/", "di<v"); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('di<v') contains the invalid character '<'. -PASS createAttributeNS("http://example.com/", "-div"); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('-div') contains the invalid name-start character '-'. -PASS createAttributeNS("http://example.com/", ".div"); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('.div') contains the invalid name-start character '.'. -PASS createAttributeNS(null, ":div"); threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided (':div') has an empty namespace prefix. -PASS createAttributeNS(null, "div:"); threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('div:') has an empty local name. -PASS createAttributeNS("http://example.com/", ":div"); threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided (':div') has an empty namespace prefix. -PASS createAttributeNS("http://example.com/", "div:"); threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('div:') has an empty local name. -PASS createAttributeNS(null, "d:iv"); threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document': The namespace URI provided ('') is not valid for the qualified name provided ('d:iv'). -PASS createAttributeNS(null, "a:b:c"); valid XML name, invalid QName; threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('a:b:c') contains multiple colons. -PASS createAttributeNS("http://example.com/", "a:b:c"); valid XML name, invalid QName; threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('a:b:c') contains multiple colons. -PASS createAttributeNS(null, "a::c"); valid XML name, invalid QName; threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('a::c') contains multiple colons. -PASS createAttributeNS("http://example.com/", "a::c"); valid XML name, invalid QName; threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('a::c') contains multiple colons. -PASS createAttributeNS("http://example.com/", "a:0"); valid XML name, not a valid QName; threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('a:0') contains the invalid name-start character '0'. -PASS createAttributeNS("http://example.com/", "0:a"); 0 at start makes it not a valid XML name; threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('0:a') contains the invalid name-start character '0'. -PASS createAttributeNS("http://example.com/", "a:_") -FAIL createAttributeNS("http://example.com/", "a:ெ"); non-ASCII character after colon is CombiningChar, which is NCNameChar but not (Letter | "_") so invalid at start of NCName (but still a valid XML name, hence not INVALID_CHARACTER_ERR); expected NAMESPACE_ERR, threw INVALID_CHARACTER_ERR -PASS createAttributeNS("http://example.com/", "ெ:a"); non-ASCII character after colon is CombiningChar, which is NCNameChar but not (Letter | "_") so invalid at start of NCName (Gecko chooses to throw NAMESPACE_ERR here, but either is valid as this is both an invalid XML name and an invalid QName); threw InvalidCharacterError: Failed to execute 'createAttributeNS' on 'Document': The qualified name provided ('ெ:a') contains the invalid name-start character 'ெ'. -PASS createAttributeNS("http://example.com/", "a:aெ") -PASS createAttributeNS("http://example.com/", "aெ:a") -PASS createAttributeNS("http://example.com/", "xml:test"); binding xml prefix wrong; threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document': The namespace URI provided ('http://example.com/') is not valid for the qualified name provided ('xml:test'). -PASS createAttributeNS("http://example.com/", "xmlns:test"); binding xmlns prefix wrong; threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document': The namespace URI provided ('http://example.com/') is not valid for the qualified name provided ('xmlns:test'). -PASS createAttributeNS("http://www.w3.org/2000/xmlns/", "x:test"); binding namespace namespace to wrong prefix; threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document': The namespace URI provided ('http://www.w3.org/2000/xmlns/') is not valid for the qualified name provided ('x:test'). -PASS createAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:test") -PASS createAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:test") -PASS createAttributeNS("http://www.w3.org/XML/1998/namespace", "x:test") -PASS createAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns") -PASS createAttributeNS("http://example.com/", "xmlns"); threw NamespaceError: Failed to execute 'createAttributeNS' on 'Document': The namespace URI provided ('http://example.com/') is not valid for the qualified name provided ('xmlns'). -PASS successfullyParsed is true - -TEST COMPLETE - diff --git a/third_party/WebKit/LayoutTests/fast/dom/Document/createAttributeNS-namespace-err.html b/third_party/WebKit/LayoutTests/fast/dom/Document/createAttributeNS-namespace-err.html deleted file mode 100644 index c6a9ee6..0000000 --- a/third_party/WebKit/LayoutTests/fast/dom/Document/createAttributeNS-namespace-err.html +++ /dev/null @@ -1,9 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> -<html> -<head> -<script src="../../../resources/js-test.js"></script> -</head> -<body> -<script src="script-tests/createAttributeNS-namespace-err.js"></script> -</body> -</html> diff --git a/third_party/WebKit/LayoutTests/fast/dom/Document/script-tests/createAttributeNS-namespace-err.js b/third_party/WebKit/LayoutTests/fast/dom/Document/script-tests/createAttributeNS-namespace-err.js deleted file mode 100644 index 18d2332..0000000 --- a/third_party/WebKit/LayoutTests/fast/dom/Document/script-tests/createAttributeNS-namespace-err.js +++ /dev/null @@ -1,131 +0,0 @@ -description("createAttirbuteNS tests adapted from createElementNS tests attached to webkit bug 16833"); - -function assert(c, m) -{ - if (!c) - testFailed(m); - else - testPassed(m); -} - -function stringForExceptionCode(c) -{ - var exceptionName; - switch(c) { - case DOMException.INVALID_CHARACTER_ERR: - exceptionName = "INVALID_CHARACTER_ERR"; - break; - case DOMException.NAMESPACE_ERR: - exceptionName = "NAMESPACE_ERR"; - } - if (exceptionName) - return exceptionName; // + "(" + c + ")"; - return c; -} - -function assertExceptionCode(exception, expect, m) -{ - var actual = exception.code; - if (actual !== expect) { - m += "; expected " + stringForExceptionCode(expect) + ", threw " + stringForExceptionCode(actual); - testFailed(m); - } else { - m += "; threw " + exception.toString(); - testPassed(m); - } -} - -var allNSTests = [ - { args: [undefined, undefined] }, - { args: [null, undefined] }, - { args: [undefined, null], code: 5 }, - { args: [null, null], code: 5 }, - { args: [null, ""], code: 5 }, - { args: ["", null], code: 5 }, - { args: ["", ""], code: 5 }, - { args: [null, "<div>"], code: 5 }, - { args: [null, "0div"], code: 5 }, - { args: [null, "di v"], code: 5 }, - { args: [null, "di<v"], code: 5 }, - { args: [null, "-div"], code: 5 }, - { args: [null, ".div"], code: 5 }, - { args: ["http://example.com/", "<div>"], code: 5 }, - { args: ["http://example.com/", "0div"], code: 5 }, - { args: ["http://example.com/", "di<v"], code: 5 }, - { args: ["http://example.com/", "-div"], code: 5 }, - { args: ["http://example.com/", ".div"], code: 5 }, - { args: [null, ":div"], code: 14 }, - { args: [null, "div:"], code: 14 }, - { args: ["http://example.com/", ":div"], code: 14 }, - { args: ["http://example.com/", "div:"], code: 14 }, - { args: [null, "d:iv"], code: 14 }, - { args: [null, "a:b:c"], code: 14, message: "valid XML name, invalid QName" }, - { args: ["http://example.com/", "a:b:c"], code: 14, message: "valid XML name, invalid QName" }, - { args: [null, "a::c"], code: 14, message: "valid XML name, invalid QName" }, - { args: ["http://example.com/", "a::c"], code: 14, message: "valid XML name, invalid QName" }, - { args: ["http://example.com/", "a:0"], code: 5, message: "valid XML name, not a valid QName" }, - { args: ["http://example.com/", "0:a"], code: 5, message: "0 at start makes it not a valid XML name" }, - { args: ["http://example.com/", "a:_"] }, - { args: ["http://example.com/", "a:\u0BC6"], code: 14, - message: "non-ASCII character after colon is CombiningChar, which is " + - "NCNameChar but not (Letter | \"_\") so invalid at start of " + - "NCName (but still a valid XML name, hence not INVALID_CHARACTER_ERR)" }, - { args: ["http://example.com/", "\u0BC6:a"], code: 5, - message: "non-ASCII character after colon is CombiningChar, which is " + - "NCNameChar but not (Letter | \"_\") so invalid at start of " + - "NCName (Gecko chooses to throw NAMESPACE_ERR here, but either is valid " + - "as this is both an invalid XML name and an invalid QName)" }, - { args: ["http://example.com/", "a:a\u0BC6"] }, - { args: ["http://example.com/", "a\u0BC6:a"] }, - { args: ["http://example.com/", "xml:test"], code: 14, message: "binding xml prefix wrong" }, - { args: ["http://example.com/", "xmlns:test"], code: 14, message: "binding xmlns prefix wrong" }, - { args: ["http://www.w3.org/2000/xmlns/", "x:test"], code: 14, message: "binding namespace namespace to wrong prefix" }, - { args: ["http://www.w3.org/2000/xmlns/", "xmlns:test"] }, - { args: ["http://www.w3.org/XML/1998/namespace", "xml:test"] }, - { args: ["http://www.w3.org/XML/1998/namespace", "x:test"] }, - { args: ["http://www.w3.org/2000/xmlns/", "xmlns"] }, // See http://www.w3.org/2000/xmlns/ - { args: ["http://example.com/", "xmlns"], code: 14 }, // from the createAttributeNS section -]; - -function sourceify(v) -{ - switch (typeof v) { - case "undefined": - return v; - - case "string": - return '"' + v.replace('"', '\\"') + '"'; - - default: - return String(v); - } -} - -function runNSTests() -{ - var createFunction = document.createAttributeNS; - var createFunctionName = "createAttributeNS"; - var doc = document; - - for (var i = 0, sz = allNSTests.length; i < sz; i++) { - var test = allNSTests[i]; - - var code = -1; - var argStr = sourceify(test.args[0]) + ", " + sourceify(test.args[1]); - var msg = createFunctionName + "(" + argStr + ")"; - if ("message" in test) - msg += "; " + test.message; - try { - createFunction.apply(doc, test.args); - assert(!("code" in test), msg); - } catch (e) { - assertExceptionCode(e, test.code || "expected no exception", msg); - } - } -} - -// Moz throws a "Not enough arguments" exception in these, we don't: -shouldBeEqualToString("document.createAttributeNS().toString()", "[object Attr]"); -shouldBeEqualToString("document.createAttributeNS(\"http://www.example.com\").toString()", "[object Attr]"); - -runNSTests(); diff --git a/third_party/WebKit/LayoutTests/fast/dom/Element/script-tests/setAttributeNS-namespace-err.js b/third_party/WebKit/LayoutTests/fast/dom/Element/script-tests/setAttributeNS-namespace-err.js deleted file mode 100644 index dbe8f56..0000000 --- a/third_party/WebKit/LayoutTests/fast/dom/Element/script-tests/setAttributeNS-namespace-err.js +++ /dev/null @@ -1,127 +0,0 @@ -description("setAttributeNS tests adapted from createAttributeNS which in turn were adapted from createElementNS tests attached to webkit bug 16833"); - -function assert(c, m) -{ - if (!c) - testFailed(m); - else - testPassed(m); -} - -function stringForExceptionCode(c) -{ - var exceptionName; - switch(c) { - case DOMException.INVALID_CHARACTER_ERR: - exceptionName = "INVALID_CHARACTER_ERR"; - break; - case DOMException.NAMESPACE_ERR: - exceptionName = "NAMESPACE_ERR"; - } - if (exceptionName) - return exceptionName; // + "(" + c + ")"; - return c; -} - -function assertEquals(actual, expect, m) -{ - if (actual !== expect) { - m += "; expected " + stringForExceptionCode(expect) + ", threw " + stringForExceptionCode(actual); - testFailed(m); - } else { - m += "; threw " + stringForExceptionCode(actual);; - testPassed(m); - } -} - -var allNSTests = [ - { args: [undefined, undefined] }, - { args: [null, undefined] }, - { args: [undefined, null], code: 5 }, - { args: [null, null], code: 5 }, - { args: [null, ""], code: 5 }, - { args: ["", null], code: 5 }, - { args: ["", ""], code: 5 }, - { args: [null, "<div>"], code: 5 }, - { args: [null, "0div"], code: 5 }, - { args: [null, "di v"], code: 5 }, - { args: [null, "di<v"], code: 5 }, - { args: [null, "-div"], code: 5 }, - { args: [null, ".div"], code: 5 }, - { args: ["http://example.com/", "<div>"], code: 5 }, - { args: ["http://example.com/", "0div"], code: 5 }, - { args: ["http://example.com/", "di<v"], code: 5 }, - { args: ["http://example.com/", "-div"], code: 5 }, - { args: ["http://example.com/", ".div"], code: 5 }, - { args: [null, ":div"], code: 14 }, - { args: [null, "div:"], code: 14 }, - { args: ["http://example.com/", ":div"], code: 14 }, - { args: ["http://example.com/", "div:"], code: 14 }, - { args: [null, "d:iv"], code: 14 }, - { args: [null, "a:b:c"], code: 14, message: "valid XML name, invalid QName" }, - { args: ["http://example.com/", "a:b:c"], code: 14, message: "valid XML name, invalid QName" }, - { args: [null, "a::c"], code: 14, message: "valid XML name, invalid QName" }, - { args: ["http://example.com/", "a::c"], code: 14, message: "valid XML name, invalid QName" }, - { args: ["http://example.com/", "a:0"], code: 5, message: "valid XML name, not a valid QName" }, - { args: ["http://example.com/", "0:a"], code: 5, message: "0 at start makes it not a valid XML name" }, - { args: ["http://example.com/", "a:_"] }, - { args: ["http://example.com/", "a:\u0BC6"], code: 14, - message: "non-ASCII character after colon is CombiningChar, which is " + - "NCNameChar but not (Letter | \"_\") so invalid at start of " + - "NCName (but still a valid XML name, hence not INVALID_CHARACTER_ERR)" }, - { args: ["http://example.com/", "\u0BC6:a"], code: 5, - message: "non-ASCII character after colon is CombiningChar, which is " + - "NCNameChar but not (Letter | \"_\") so invalid at start of " + - "NCName (Gecko chooses to throw NAMESPACE_ERR here, but either is valid " + - "as this is both an invalid XML name and an invalid QName)" }, - { args: ["http://example.com/", "a:a\u0BC6"] }, - { args: ["http://example.com/", "a\u0BC6:a"] }, - { args: ["http://example.com/", "xml:test"], code: 14, message: "binding xml prefix wrong" }, - { args: ["http://example.com/", "xmlns:test"], code: 14, message: "binding xmlns prefix wrong" }, - { args: ["http://www.w3.org/2000/xmlns/", "x:test"], code: 14, message: "binding namespace namespace to wrong prefix" }, - { args: ["http://www.w3.org/2000/xmlns/", "xmlns:test"] }, - { args: ["http://www.w3.org/XML/1998/namespace", "xml:test"] }, - { args: ["http://www.w3.org/XML/1998/namespace", "x:test"] }, - { args: ["http://www.w3.org/2000/xmlns/", "xmlns"] }, // See http://www.w3.org/2000/xmlns/ - { args: ["http://example.com/", "xmlns"], code: 14 }, // from the createAttributeNS section -]; - -function sourceify(v) -{ - switch (typeof v) { - case "undefined": - return v; - - case "string": - return '"' + v.replace('"', '\\"') + '"'; - - default: - return String(v); - } -} - -function runNSTests() -{ - var element = document.createElement("div"); - var setFunction = element.setAttributeNS; - var setFunctionName = "element.setAttributeNS"; - var value = "'value'"; - - for (var i = 0, sz = allNSTests.length; i < sz; i++) { - var test = allNSTests[i]; - - var code = -1; - var argStr = sourceify(test.args[0]) + ", " + sourceify(test.args[1]) + ", " + value; - var msg = setFunctionName + "(" + argStr + ")"; - if ("message" in test) - msg += "; " + test.message; - try { - setFunction.apply(element, test.args.concat([value])); - assert(!("code" in test), msg); - } catch (e) { - assertEquals(e.code, test.code || "expected no exception", msg); - } - } -} - -runNSTests(); diff --git a/third_party/WebKit/LayoutTests/fast/dom/Element/setAttributeNS-namespace-err-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/Element/setAttributeNS-namespace-err-expected.txt deleted file mode 100644 index 613e0d9..0000000 --- a/third_party/WebKit/LayoutTests/fast/dom/Element/setAttributeNS-namespace-err-expected.txt +++ /dev/null @@ -1,51 +0,0 @@ -setAttributeNS tests adapted from createAttributeNS which in turn were adapted from createElementNS tests attached to webkit bug 16833 - -On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". - - -PASS element.setAttributeNS(undefined, undefined, 'value') -PASS element.setAttributeNS(null, undefined, 'value') -FAIL element.setAttributeNS(undefined, null, 'value') -FAIL element.setAttributeNS(null, null, 'value') -PASS element.setAttributeNS(null, "", 'value'); threw INVALID_CHARACTER_ERR -FAIL element.setAttributeNS("", null, 'value') -PASS element.setAttributeNS("", "", 'value'); threw INVALID_CHARACTER_ERR -PASS element.setAttributeNS(null, "<div>", 'value'); threw INVALID_CHARACTER_ERR -PASS element.setAttributeNS(null, "0div", 'value'); threw INVALID_CHARACTER_ERR -PASS element.setAttributeNS(null, "di v", 'value'); threw INVALID_CHARACTER_ERR -PASS element.setAttributeNS(null, "di<v", 'value'); threw INVALID_CHARACTER_ERR -PASS element.setAttributeNS(null, "-div", 'value'); threw INVALID_CHARACTER_ERR -PASS element.setAttributeNS(null, ".div", 'value'); threw INVALID_CHARACTER_ERR -PASS element.setAttributeNS("http://example.com/", "<div>", 'value'); threw INVALID_CHARACTER_ERR -PASS element.setAttributeNS("http://example.com/", "0div", 'value'); threw INVALID_CHARACTER_ERR -PASS element.setAttributeNS("http://example.com/", "di<v", 'value'); threw INVALID_CHARACTER_ERR -PASS element.setAttributeNS("http://example.com/", "-div", 'value'); threw INVALID_CHARACTER_ERR -PASS element.setAttributeNS("http://example.com/", ".div", 'value'); threw INVALID_CHARACTER_ERR -PASS element.setAttributeNS(null, ":div", 'value'); threw NAMESPACE_ERR -PASS element.setAttributeNS(null, "div:", 'value'); threw NAMESPACE_ERR -PASS element.setAttributeNS("http://example.com/", ":div", 'value'); threw NAMESPACE_ERR -PASS element.setAttributeNS("http://example.com/", "div:", 'value'); threw NAMESPACE_ERR -PASS element.setAttributeNS(null, "d:iv", 'value'); threw NAMESPACE_ERR -PASS element.setAttributeNS(null, "a:b:c", 'value'); valid XML name, invalid QName; threw NAMESPACE_ERR -PASS element.setAttributeNS("http://example.com/", "a:b:c", 'value'); valid XML name, invalid QName; threw NAMESPACE_ERR -PASS element.setAttributeNS(null, "a::c", 'value'); valid XML name, invalid QName; threw NAMESPACE_ERR -PASS element.setAttributeNS("http://example.com/", "a::c", 'value'); valid XML name, invalid QName; threw NAMESPACE_ERR -PASS element.setAttributeNS("http://example.com/", "a:0", 'value'); valid XML name, not a valid QName; threw INVALID_CHARACTER_ERR -PASS element.setAttributeNS("http://example.com/", "0:a", 'value'); 0 at start makes it not a valid XML name; threw INVALID_CHARACTER_ERR -PASS element.setAttributeNS("http://example.com/", "a:_", 'value') -FAIL element.setAttributeNS("http://example.com/", "a:ெ", 'value'); non-ASCII character after colon is CombiningChar, which is NCNameChar but not (Letter | "_") so invalid at start of NCName (but still a valid XML name, hence not INVALID_CHARACTER_ERR); expected NAMESPACE_ERR, threw INVALID_CHARACTER_ERR -PASS element.setAttributeNS("http://example.com/", "ெ:a", 'value'); non-ASCII character after colon is CombiningChar, which is NCNameChar but not (Letter | "_") so invalid at start of NCName (Gecko chooses to throw NAMESPACE_ERR here, but either is valid as this is both an invalid XML name and an invalid QName); threw INVALID_CHARACTER_ERR -PASS element.setAttributeNS("http://example.com/", "a:aெ", 'value') -PASS element.setAttributeNS("http://example.com/", "aெ:a", 'value') -PASS element.setAttributeNS("http://example.com/", "xml:test", 'value'); binding xml prefix wrong; threw NAMESPACE_ERR -PASS element.setAttributeNS("http://example.com/", "xmlns:test", 'value'); binding xmlns prefix wrong; threw NAMESPACE_ERR -PASS element.setAttributeNS("http://www.w3.org/2000/xmlns/", "x:test", 'value'); binding namespace namespace to wrong prefix; threw NAMESPACE_ERR -PASS element.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:test", 'value') -PASS element.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:test", 'value') -PASS element.setAttributeNS("http://www.w3.org/XML/1998/namespace", "x:test", 'value') -PASS element.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns", 'value') -PASS element.setAttributeNS("http://example.com/", "xmlns", 'value'); threw NAMESPACE_ERR -PASS successfullyParsed is true - -TEST COMPLETE - diff --git a/third_party/WebKit/LayoutTests/fast/dom/Element/setAttributeNS-namespace-err.html b/third_party/WebKit/LayoutTests/fast/dom/Element/setAttributeNS-namespace-err.html deleted file mode 100644 index 03a2f7c..0000000 --- a/third_party/WebKit/LayoutTests/fast/dom/Element/setAttributeNS-namespace-err.html +++ /dev/null @@ -1,9 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> -<html> -<head> -<script src="../../../resources/js-test.js"></script> -</head> -<body> -<script src="script-tests/setAttributeNS-namespace-err.js"></script> -</body> -</html> diff --git a/third_party/WebKit/LayoutTests/fast/dom/Element/setAttributeNode-case-insensitivity-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/Element/setAttributeNode-case-insensitivity-expected.txt index 8ce3e39..888aebd 100644 --- a/third_party/WebKit/LayoutTests/fast/dom/Element/setAttributeNode-case-insensitivity-expected.txt +++ b/third_party/WebKit/LayoutTests/fast/dom/Element/setAttributeNode-case-insensitivity-expected.txt @@ -1,4 +1,5 @@ Test for Bugzilla bug: 90341: createAttribute/setAttributeNode does not properly normalize case. + This test verifies that the setAttributeNode() API checks for existing attributes case-insensitively. Thus the value of an existing attribute with the same name but in a different case should get replaced by the new value specified via the setAttributeNode() method. On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". @@ -8,12 +9,4 @@ PASS successfullyParsed is true TEST COMPLETE PASS test.getAttribute('style') is test.getAttribute('STYLE') PASS test.getAttributeNode('style').value is test.getAttributeNode('STYLE').value -Verifying that attributes with the same name but different namespaces are treated as unique entities. For the following test two different attribute values should be returned. -PASS test.getAttributeNodeNS('ns1', 'newattr').value is 'newattr1' -PASS test.getAttributeNodeNS('ns2', 'newattr').value is 'newattr2' -Verifying that attributes with same name but different case and having same namespaces are treated as same. In the following test the new attribute should overwrite the value of the existing one. -PASS test.getAttributeNodeNS('ns1', 'newattr').value is 'newattr3' -PASS successfullyParsed is true - -TEST COMPLETE diff --git a/third_party/WebKit/LayoutTests/fast/dom/Element/setAttributeNode-case-insensitivity.html b/third_party/WebKit/LayoutTests/fast/dom/Element/setAttributeNode-case-insensitivity.html index 6fe0d5b..68f202b 100644 --- a/third_party/WebKit/LayoutTests/fast/dom/Element/setAttributeNode-case-insensitivity.html +++ b/third_party/WebKit/LayoutTests/fast/dom/Element/setAttributeNode-case-insensitivity.html @@ -15,34 +15,6 @@ function runTest() shouldBe("test.getAttribute('style')", "test.getAttribute('STYLE')"); shouldBe("test.getAttributeNode('style').value", "test.getAttributeNode('STYLE').value"); } - - debug("Verifying that attributes with the same name but different namespaces are treated as unique entities. For the following test two different attribute values should be returned."); - var newAttr1 = document.createAttributeNS("ns1", "newattr"); - newAttr1.prefix = "prefix1"; - newAttr1.value = "newattr1"; - test.setAttributeNode(newAttr1); - var newAttr2 = document.createAttributeNS("ns2", "newattr"); - newAttr2.prefix = "prefix2"; - newAttr2.value = "newattr2"; - test.setAttributeNode(newAttr2); - if (window.testRunner) { - shouldBe("test.getAttributeNodeNS('ns1', 'newattr').value", "'newattr1'"); - shouldBe("test.getAttributeNodeNS('ns2', 'newattr').value", "'newattr2'"); - } - - debug("Verifying that attributes with same name but different case and having same namespaces are treated as same. In the following test the new attribute should overwrite the value of the existing one."); - var newAttr3 = document.createAttributeNS("ns1", "NEWATTR"); - newAttr3.prefix = "prefix2"; - newAttr3.value = "newattr3"; - test.setAttributeNode(newAttr3); - - if (window.testRunner) { - shouldBe("test.getAttributeNodeNS('ns1', 'newattr').value", "'newattr3'"); - - isSuccessfullyParsed(); - test.style.display = 'none'; - } - } </script> </head> diff --git a/third_party/WebKit/LayoutTests/fast/dom/Node/initial-values-expected.txt b/third_party/WebKit/LayoutTests/fast/dom/Node/initial-values-expected.txt index f1b46cd..28c20bb 100644 --- a/third_party/WebKit/LayoutTests/fast/dom/Node/initial-values-expected.txt +++ b/third_party/WebKit/LayoutTests/fast/dom/Node/initial-values-expected.txt @@ -11,14 +11,6 @@ PASS attr.namespaceURI is null PASS attr.prefix is null PASS attr.nodeValue is '' PASS attr.value is '' -Attribute creation using createElementNS on an HTML doc: -PASS attr.nodeName is 'example:foo' -PASS attr.name is 'example:foo' -PASS attr.localName is 'foo' -PASS attr.namespaceURI is 'http://www.example.com' -PASS attr.prefix is 'example' -PASS attr.nodeValue is '' -PASS attr.value is '' Attribute creation using createElement on an XHTML doc: PASS attr.nodeName is 'foo' PASS attr.name is 'foo' @@ -27,14 +19,6 @@ PASS attr.namespaceURI is null PASS attr.prefix is null PASS attr.nodeValue is '' PASS attr.value is '' -Attribute creation using createElementNS on an XHTML doc: -PASS attr.nodeName is 'example:foo' -PASS attr.name is 'example:foo' -PASS attr.localName is 'foo' -PASS attr.namespaceURI is 'http://www.example.com' -PASS attr.prefix is 'example' -PASS attr.nodeValue is '' -PASS attr.value is '' PASS comment.nodeName is '#comment' PASS comment.localName is null PASS comment.namespaceURI is null diff --git a/third_party/WebKit/LayoutTests/fast/dom/Node/script-tests/initial-values.js b/third_party/WebKit/LayoutTests/fast/dom/Node/script-tests/initial-values.js index 9d235b9..d4f1b0d 100644 --- a/third_party/WebKit/LayoutTests/fast/dom/Node/script-tests/initial-values.js +++ b/third_party/WebKit/LayoutTests/fast/dom/Node/script-tests/initial-values.js @@ -14,16 +14,6 @@ shouldBe("attr.prefix", "null"); shouldBe("attr.nodeValue", "''"); shouldBe("attr.value", "''"); -debug("Attribute creation using createElementNS on an HTML doc:") -attr = document.createAttributeNS("http://www.example.com", "example:foo"); -shouldBe("attr.nodeName", "'example:foo'"); -shouldBe("attr.name", "'example:foo'"); -shouldBe("attr.localName", "'foo'"); -shouldBe("attr.namespaceURI", "'http://www.example.com'"); -shouldBe("attr.prefix", "'example'"); -shouldBe("attr.nodeValue", "''"); -shouldBe("attr.value", "''"); - debug("Attribute creation using createElement on an XHTML doc:") attr = xmlDoc.createAttribute("foo"); shouldBe("attr.nodeName", "'foo'"); @@ -36,16 +26,6 @@ shouldBe("attr.prefix", "null"); shouldBe("attr.nodeValue", "''"); shouldBe("attr.value", "''"); -debug("Attribute creation using createElementNS on an XHTML doc:") -attr = xmlDoc.createAttributeNS("http://www.example.com", "example:foo"); -shouldBe("attr.nodeName", "'example:foo'"); -shouldBe("attr.name", "'example:foo'"); -shouldBe("attr.localName", "'foo'"); -shouldBe("attr.namespaceURI", "'http://www.example.com'"); -shouldBe("attr.prefix", "'example'"); -shouldBe("attr.nodeValue", "''"); -shouldBe("attr.value", "''"); - var comment = document.createComment("foo"); shouldBe("comment.nodeName", "'#comment'"); shouldBe("comment.localName", "null"); diff --git a/third_party/WebKit/LayoutTests/fast/dom/coreDOM-element-attribute-js-null.xhtml b/third_party/WebKit/LayoutTests/fast/dom/coreDOM-element-attribute-js-null.xhtml index 41a6d36..089ffb7 100644 --- a/third_party/WebKit/LayoutTests/fast/dom/coreDOM-element-attribute-js-null.xhtml +++ b/third_party/WebKit/LayoutTests/fast/dom/coreDOM-element-attribute-js-null.xhtml @@ -48,7 +48,7 @@ var listing = [ { type: 'Attr', - elementToUse: document.createAttributeNS('http://www.w3.org/1999/xhtml','anAttribute'), + elementToUse: document.createAttribute('anAttribute'), attributes: [ {name: 'value', expectedNull: null} ] diff --git a/third_party/WebKit/LayoutTests/fast/dom/serialize-nodes.xhtml b/third_party/WebKit/LayoutTests/fast/dom/serialize-nodes.xhtml index ae4791d..6e77e2b 100644 --- a/third_party/WebKit/LayoutTests/fast/dom/serialize-nodes.xhtml +++ b/third_party/WebKit/LayoutTests/fast/dom/serialize-nodes.xhtml @@ -27,7 +27,7 @@ window.addEventListener("load", function() { c.setAttributeNS("urn:foo-ns", "foo:name", "one"); c.setAttributeNS("urn:bar-ns", "bar:name", "two"); - var attr = d.createAttributeNS(null, "name"); + var attr = d.createAttribute("name"); var text = d.createTextNode("three"); attr.appendChild(text); c.setAttributeNode(attr); diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp index b6c9cfd..b7a1b79 100644 --- a/third_party/WebKit/Source/core/dom/Document.cpp +++ b/third_party/WebKit/Source/core/dom/Document.cpp @@ -4300,21 +4300,11 @@ WeakPtr<Document> Document::contextDocument() PassRefPtr<Attr> Document::createAttribute(const AtomicString& name, ExceptionState& exceptionState) { - return createAttributeNS(nullAtom, name, exceptionState, true); -} - -PassRefPtr<Attr> Document::createAttributeNS(const AtomicString& namespaceURI, const AtomicString& qualifiedName, ExceptionState& exceptionState, bool shouldIgnoreNamespaceChecks) -{ AtomicString prefix, localName; - if (!parseQualifiedName(qualifiedName, prefix, localName, exceptionState)) + if (!parseQualifiedName(name, prefix, localName, exceptionState)) return 0; - QualifiedName qName(prefix, localName, namespaceURI); - - if (!shouldIgnoreNamespaceChecks && !hasValidNamespaceForAttributes(qName)) { - exceptionState.throwDOMException(NamespaceError, "The namespace URI provided ('" + namespaceURI + "') is not valid for the qualified name provided ('" + qualifiedName + "')."); - return 0; - } + QualifiedName qName(prefix, localName, nullAtom); return Attr::create(*this, qName, emptyAtom); } diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h index 2f4527d..ef53723 100644 --- a/third_party/WebKit/Source/core/dom/Document.h +++ b/third_party/WebKit/Source/core/dom/Document.h @@ -316,7 +316,6 @@ public: PassRefPtr<CDATASection> createCDATASection(const String& data, ExceptionState&); PassRefPtr<ProcessingInstruction> createProcessingInstruction(const String& target, const String& data, ExceptionState&); PassRefPtr<Attr> createAttribute(const AtomicString& name, ExceptionState&); - PassRefPtr<Attr> createAttributeNS(const AtomicString& namespaceURI, const AtomicString& qualifiedName, ExceptionState&, bool shouldIgnoreNamespaceChecks = false); PassRefPtr<Node> importNode(Node* importedNode, ExceptionState& ec) { return importNode(importedNode, true, ec); } PassRefPtr<Node> importNode(Node* importedNode, bool deep, ExceptionState&); PassRefPtr<Element> createElementNS(const AtomicString& namespaceURI, const AtomicString& qualifiedName, ExceptionState&); diff --git a/third_party/WebKit/Source/core/dom/Document.idl b/third_party/WebKit/Source/core/dom/Document.idl index 0f695f7..bfdb483 100644 --- a/third_party/WebKit/Source/core/dom/Document.idl +++ b/third_party/WebKit/Source/core/dom/Document.idl @@ -42,8 +42,6 @@ callback CustomElementConstructor = Element (); [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds, RaisesException] Node importNode(Node node, optional boolean deep); [CustomElementCallbacks, PerWorldBindings, ActivityLogging=ForIsolatedWorlds, RaisesException] Element createElementNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString qualifiedName); - [RaisesException, MeasureAs=DocumentCreateAttributeNS] Attr createAttributeNS([TreatNullAs=NullString,Default=Undefined] optional DOMString namespaceURI, - [TreatNullAs=NullString,Default=Undefined] optional DOMString qualifiedName); // Removed from DOM4. HTMLCollection getElementsByTagNameNS([TreatNullAs=NullString] DOMString namespaceURI, DOMString localName); [PerWorldBindings] Element getElementById(DOMString elementId); diff --git a/third_party/WebKit/Source/core/frame/UseCounter.h b/third_party/WebKit/Source/core/frame/UseCounter.h index 082ea06..f88790f 100644 --- a/third_party/WebKit/Source/core/frame/UseCounter.h +++ b/third_party/WebKit/Source/core/frame/UseCounter.h @@ -171,7 +171,7 @@ public: ElementRemoveAttributeNode, // Removed from DOM4. ElementGetAttributeNodeNS, // Removed from DOM4. DocumentCreateAttribute, // Removed from DOM4. - DocumentCreateAttributeNS, // Removed from DOM4. + REMOVEDDocumentCreateAttributeNS, // Removed from DOM4. DocumentCreateCDATASection, // Removed from DOM4. DocumentInputEncoding, // Removed from DOM4. DocumentXMLEncoding, // Removed from DOM4. |