implement Document#createAttribute

This commit is contained in:
Rohan Prinja 2014-11-22 14:41:47 +05:30
parent b4c3aec383
commit 4b754bd457
8 changed files with 43 additions and 66 deletions

View file

@ -126,9 +126,6 @@
[Document interface: operation importNode(Node,boolean)]
expected: FAIL
[Document interface: operation createAttribute(DOMString)]
expected: FAIL
[Document interface: operation createAttributeNS(DOMString,DOMString)]
expected: FAIL
@ -180,12 +177,6 @@
[Document interface: xmlDoc must inherit property "origin" with the proper type (3)]
expected: FAIL
[Document interface: xmlDoc must inherit property "createAttribute" with the proper type (20)]
expected: FAIL
[Document interface: calling createAttribute(DOMString) on xmlDoc with too few arguments must throw TypeError]
expected: FAIL
[Document interface: xmlDoc must inherit property "createAttributeNS" with the proper type (21)]
expected: FAIL

View file

@ -1,35 +0,0 @@
[Document-createAttribute.html]
type: testharness
[createAttribute("")]
expected: FAIL
[createAttribute("invalid^Name")]
expected: FAIL
[createAttribute("\\\\")]
expected: FAIL
[createAttribute("\'")]
expected: FAIL
[createAttribute("\\"")]
expected: FAIL
[createAttribute("0")]
expected: FAIL
[createAttribute("0:a")]
expected: FAIL
[createAttribute("title")]
expected: FAIL
[createAttribute("TITLE")]
expected: FAIL
[createAttribute(null)]
expected: FAIL
[createAttribute(undefined)]
expected: FAIL

View file

@ -1053,12 +1053,6 @@
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "origin" with the proper type (3)]
expected: FAIL
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "createAttribute" with the proper type (20)]
expected: FAIL
[Document interface: calling createAttribute(DOMString) on document.implementation.createDocument(null, "", null) with too few arguments must throw TypeError]
expected: FAIL
[Document interface: document.implementation.createDocument(null, "", null) must inherit property "createAttributeNS" with the proper type (21)]
expected: FAIL