summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/Document.idl
blob: a691c583a2f7d80996364728e2ca5342b5ef6706 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 getElementsByName(DOMString name);
    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);
    Element createElementNS(DOMString? namespace, DOMString qualifiedName);
    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;

    attribute DOMString title;

};