mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
auto merge of #1838 : brunoabinader/servo/htmlcollection-live, r=jdm
This commit is contained in:
commit
2238d81b53
12 changed files with 277 additions and 64 deletions
|
@ -21,6 +21,8 @@ interface Document : Node {
|
|||
readonly attribute DocumentType? doctype;
|
||||
readonly attribute Element? documentElement;
|
||||
HTMLCollection getElementsByTagName(DOMString localName);
|
||||
HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
|
||||
HTMLCollection getElementsByClassName(DOMString classNames);
|
||||
Element? getElementById(DOMString elementId);
|
||||
|
||||
[Creator, Throws]
|
||||
|
|
|
@ -51,7 +51,6 @@ interface Element : Node {
|
|||
boolean hasAttributeNS(DOMString? namespace, DOMString localName);
|
||||
|
||||
HTMLCollection getElementsByTagName(DOMString localName);
|
||||
[Throws]
|
||||
HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
|
||||
HTMLCollection getElementsByClassName(DOMString classNames);
|
||||
};
|
||||
|
|
|
@ -10,6 +10,5 @@
|
|||
interface HTMLCollection {
|
||||
readonly attribute unsigned long length;
|
||||
getter Element? item(unsigned long index);
|
||||
[Throws]
|
||||
getter object? namedItem(DOMString name); // only returns Element
|
||||
getter Element? namedItem(DOMString name);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue