summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/DOM/Element.idl
blob: fe5c462a489ae1778f493ebcce80e5700936bb96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
interface Element : Node {
    readonly attribute DOMString? namespaceURI;
    readonly attribute DOMString tagName;

    DOMString? getAttribute(DOMString qualifiedName);
    void setAttribute(DOMString qualifiedName, DOMString value);

    readonly attribute Element? firstElementChild;
    readonly attribute Element? lastElementChild;

    Element? querySelector(DOMString selectors);
    ArrayFromVector querySelectorAll(DOMString selectors);

    [LegacyNullToEmptyString] attribute DOMString innerHTML;
    [Reflect] attribute DOMString id;
    [Reflect=class] attribute DOMString className;

    readonly attribute Element? nextElementSibling;
    readonly attribute Element? previousElementSibling;
};