mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Implement Element.getAttributeNames
This commit is contained in:
parent
329a5b0c95
commit
b8ae5897f1
7 changed files with 15 additions and 9 deletions
|
@ -120,19 +120,19 @@
|
|||
[Element interface: element must inherit property "hasAttributes" with the proper type (7)]
|
||||
expected: FAIL
|
||||
|
||||
[Element interface: element must inherit property "removeAttributeNode" with the proper type (21)]
|
||||
[Element interface: element must inherit property "removeAttributeNode" with the proper type (22)]
|
||||
expected: FAIL
|
||||
|
||||
[Element interface: calling removeAttributeNode(Attr) on element with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Element interface: element must inherit property "query" with the proper type (33)]
|
||||
[Element interface: element must inherit property "query" with the proper type (34)]
|
||||
expected: FAIL
|
||||
|
||||
[Element interface: calling query(DOMString) on element with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Element interface: element must inherit property "queryAll" with the proper type (34)]
|
||||
[Element interface: element must inherit property "queryAll" with the proper type (35)]
|
||||
expected: FAIL
|
||||
|
||||
[Element interface: calling queryAll(DOMString) on element with too few arguments must throw TypeError]
|
||||
|
|
|
@ -3,9 +3,6 @@
|
|||
[Basic functionality of removeAttributeNode]
|
||||
expected: FAIL
|
||||
|
||||
[getAttributeNames tests]
|
||||
expected: FAIL
|
||||
|
||||
[Own property names should only include all-lowercase qualified names for an HTML element in an HTML document]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1986,19 +1986,19 @@
|
|||
[Element interface: document.createElement("noscript") must inherit property "hasAttributes" with the proper type (7)]
|
||||
expected: FAIL
|
||||
|
||||
[Element interface: document.createElement("noscript") must inherit property "removeAttributeNode" with the proper type (21)]
|
||||
[Element interface: document.createElement("noscript") must inherit property "removeAttributeNode" with the proper type (22)]
|
||||
expected: FAIL
|
||||
|
||||
[Element interface: calling removeAttributeNode(Attr) on document.createElement("noscript") with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Element interface: document.createElement("noscript") must inherit property "query" with the proper type (33)]
|
||||
[Element interface: document.createElement("noscript") must inherit property "query" with the proper type (34)]
|
||||
expected: FAIL
|
||||
|
||||
[Element interface: calling query(DOMString) on document.createElement("noscript") with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
[Element interface: document.createElement("noscript") must inherit property "queryAll" with the proper type (34)]
|
||||
[Element interface: document.createElement("noscript") must inherit property "queryAll" with the proper type (35)]
|
||||
expected: FAIL
|
||||
|
||||
[Element interface: calling queryAll(DOMString) on document.createElement("noscript") with too few arguments must throw TypeError]
|
||||
|
|
|
@ -287,6 +287,7 @@ interface Element : Node {
|
|||
|
||||
boolean hasAttributes();
|
||||
[SameObject] readonly attribute NamedNodeMap attributes;
|
||||
sequence<DOMString> getAttributeNames();
|
||||
DOMString? getAttribute(DOMString name);
|
||||
DOMString? getAttributeNS(DOMString? namespace, DOMString localName);
|
||||
void setAttribute(DOMString name, DOMString value);
|
||||
|
|
|
@ -289,6 +289,7 @@ interface Element : Node {
|
|||
|
||||
boolean hasAttributes();
|
||||
[SameObject] readonly attribute NamedNodeMap attributes;
|
||||
sequence<DOMString> getAttributeNames();
|
||||
DOMString? getAttribute(DOMString name);
|
||||
DOMString? getAttributeNS(DOMString? namespace, DOMString localName);
|
||||
void setAttribute(DOMString name, DOMString value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue