mirror of
https://github.com/servo/servo.git
synced 2025-08-12 17:05:33 +01:00
Introduce NonElementParentNode
This is the interface where Document.getElementById() belong.
This commit is contained in:
parent
c0381c7325
commit
3f5b3053b9
2 changed files with 13 additions and 1 deletions
|
@ -26,7 +26,6 @@ interface Document : Node {
|
|||
HTMLCollection getElementsByTagName(DOMString localName);
|
||||
HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
|
||||
HTMLCollection getElementsByClassName(DOMString classNames);
|
||||
Element? getElementById(DOMString elementId);
|
||||
|
||||
[NewObject, Throws]
|
||||
Element createElement(DOMString localName);
|
||||
|
@ -65,6 +64,8 @@ interface Document : Node {
|
|||
TreeWalker createTreeWalker(Node root, optional unsigned long whatToShow = 0xFFFFFFFF,
|
||||
optional NodeFilter? filter = null);
|
||||
};
|
||||
|
||||
Document implements NonElementParentNode;
|
||||
Document implements ParentNode;
|
||||
|
||||
enum DocumentReadyState { "loading", "interactive", "complete" };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue