summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/DOM/Document.idl
blob: c03204c53cf6a92352b8e1052834558f4c0357c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
interface Document : Node {

    Element? getElementById(DOMString id);
    Element? querySelector(DOMString selectors);
    ArrayFromVector getElementsByTagName(DOMString tagName);
    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;

}