mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 12:15:08 +00:00

Note that we're taking a shortcut here and returning the elements as an Array instead of HTMLCollection. One day we'll have to bite the bullet and deal with HTMLCollection, but not today.
34 lines
1.1 KiB
Text
34 lines
1.1 KiB
Text
interface Document : Node {
|
|
|
|
readonly attribute DOMImplementation implementation;
|
|
|
|
readonly attribute DOMString characterSet;
|
|
readonly attribute DOMString charset;
|
|
readonly attribute DOMString inputEncoding;
|
|
readonly attribute DOMString contentType;
|
|
|
|
Element? getElementById(DOMString id);
|
|
ArrayFromVector getElementsByTagName(DOMString tagName);
|
|
ArrayFromVector getElementsByClassName(DOMString className);
|
|
|
|
readonly attribute Element? firstElementChild;
|
|
readonly attribute Element? lastElementChild;
|
|
|
|
Element? querySelector(DOMString selectors);
|
|
ArrayFromVector querySelectorAll(DOMString selectors);
|
|
|
|
Element createElement(DOMString tagName);
|
|
DocumentFragment createDocumentFragment();
|
|
Text createTextNode(DOMString data);
|
|
Comment createComment(DOMString data);
|
|
|
|
readonly attribute DOMString compatMode;
|
|
readonly attribute DocumentType? doctype;
|
|
|
|
readonly attribute Element? documentElement;
|
|
attribute HTMLElement? body;
|
|
readonly attribute HTMLHeadElement? head;
|
|
|
|
readonly attribute DOMString readyState;
|
|
|
|
}
|