2020-06-20 22:09:38 +02:00
|
|
|
interface Document : Node {
|
|
|
|
|
|
2021-02-17 22:52:21 +01:00
|
|
|
constructor();
|
|
|
|
|
|
2022-02-03 20:06:54 +01:00
|
|
|
boolean hasFocus();
|
|
|
|
|
|
2021-09-12 14:59:49 +01:00
|
|
|
// FIXME: These attributes currently don't do anything.
|
|
|
|
|
[PutForwards=href, LegacyUnforgeable] readonly attribute Location? location;
|
|
|
|
|
|
2020-11-13 06:08:06 +00:00
|
|
|
readonly attribute DOMImplementation implementation;
|
|
|
|
|
|
2020-11-13 11:16:28 +00:00
|
|
|
readonly attribute DOMString characterSet;
|
|
|
|
|
readonly attribute DOMString charset;
|
|
|
|
|
readonly attribute DOMString inputEncoding;
|
2020-11-13 05:02:15 +00:00
|
|
|
readonly attribute DOMString contentType;
|
|
|
|
|
|
2021-02-21 21:24:11 +01:00
|
|
|
readonly attribute Window? defaultView;
|
|
|
|
|
|
2022-02-15 17:36:27 +01:00
|
|
|
undefined write(DOMString... text);
|
|
|
|
|
undefined writeln(DOMString... text);
|
|
|
|
|
|
2021-03-14 16:35:28 +01:00
|
|
|
attribute DOMString cookie;
|
|
|
|
|
|
2021-09-11 12:29:06 +02:00
|
|
|
readonly attribute USVString referrer;
|
|
|
|
|
|
2021-09-27 16:51:10 +02:00
|
|
|
readonly attribute Element? activeElement;
|
|
|
|
|
|
2020-06-20 22:09:38 +02:00
|
|
|
Element? getElementById(DOMString id);
|
2021-04-22 21:11:20 +02:00
|
|
|
HTMLCollection getElementsByName(DOMString name);
|
|
|
|
|
HTMLCollection getElementsByTagName(DOMString tagName);
|
2021-09-22 18:06:19 +01:00
|
|
|
HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
|
2021-04-22 21:11:20 +02:00
|
|
|
HTMLCollection getElementsByClassName(DOMString className);
|
2020-11-21 18:49:09 +00:00
|
|
|
|
2021-04-22 22:11:42 +02:00
|
|
|
readonly attribute HTMLCollection applets;
|
2021-04-22 22:14:55 +02:00
|
|
|
readonly attribute HTMLCollection anchors;
|
2021-05-04 23:13:28 +01:00
|
|
|
readonly attribute HTMLCollection images;
|
|
|
|
|
readonly attribute HTMLCollection embeds;
|
|
|
|
|
readonly attribute HTMLCollection plugins;
|
|
|
|
|
readonly attribute HTMLCollection links;
|
|
|
|
|
readonly attribute HTMLCollection forms;
|
|
|
|
|
readonly attribute HTMLCollection scripts;
|
2021-04-22 22:11:42 +02:00
|
|
|
|
2020-06-21 00:13:24 +02:00
|
|
|
Element createElement(DOMString tagName);
|
2021-01-28 20:15:04 +00:00
|
|
|
Element createElementNS(DOMString? namespace, DOMString qualifiedName);
|
2020-08-17 19:14:30 +01:00
|
|
|
DocumentFragment createDocumentFragment();
|
|
|
|
|
Text createTextNode(DOMString data);
|
|
|
|
|
Comment createComment(DOMString data);
|
2021-02-21 23:41:54 +01:00
|
|
|
Range createRange();
|
2021-04-10 18:58:00 +02:00
|
|
|
Event createEvent(DOMString interface);
|
2020-06-20 22:09:38 +02:00
|
|
|
|
2021-09-26 17:41:51 +01:00
|
|
|
[CEReactions, NewObject] Node importNode(Node node, optional boolean deep = false);
|
2021-04-06 19:34:49 +01:00
|
|
|
[CEReactions, ImplementedAs=adopt_node_binding] Node adoptNode(Node node);
|
|
|
|
|
|
2021-03-08 11:22:18 +01:00
|
|
|
[ImplementedAs=style_sheets_for_bindings] readonly attribute StyleSheetList styleSheets;
|
|
|
|
|
|
2020-07-18 21:17:17 +01:00
|
|
|
readonly attribute DOMString compatMode;
|
|
|
|
|
readonly attribute DocumentType? doctype;
|
|
|
|
|
|
2020-08-03 13:30:18 +02:00
|
|
|
readonly attribute Element? documentElement;
|
2020-08-17 19:14:30 +01:00
|
|
|
attribute HTMLElement? body;
|
|
|
|
|
readonly attribute HTMLHeadElement? head;
|
2021-01-28 20:31:20 +00:00
|
|
|
readonly attribute HTMLScriptElement? currentScript;
|
2020-06-21 00:59:28 +02:00
|
|
|
|
2020-08-31 13:56:16 +01:00
|
|
|
readonly attribute DOMString readyState;
|
|
|
|
|
|
2020-12-06 21:39:36 +01:00
|
|
|
attribute DOMString title;
|
|
|
|
|
|
2021-04-11 17:13:10 +01:00
|
|
|
// FIXME: These should all come from a ParentNode mixin
|
|
|
|
|
readonly attribute Element? firstElementChild;
|
|
|
|
|
readonly attribute Element? lastElementChild;
|
|
|
|
|
readonly attribute unsigned long childElementCount;
|
|
|
|
|
|
2022-01-29 20:23:48 +00:00
|
|
|
[CEReactions, Unscopable] undefined prepend((Node or DOMString)... nodes);
|
2022-01-29 20:45:17 +00:00
|
|
|
[CEReactions, Unscopable] undefined append((Node or DOMString)... nodes);
|
2022-01-29 21:01:09 +00:00
|
|
|
[CEReactions, Unscopable] undefined replaceChildren((Node or DOMString)... nodes);
|
2022-01-29 20:23:48 +00:00
|
|
|
|
2021-04-11 17:13:10 +01:00
|
|
|
Element? querySelector(DOMString selectors);
|
2021-10-02 20:36:39 +01:00
|
|
|
[NewObject] NodeList querySelectorAll(DOMString selectors);
|
2021-04-11 17:13:10 +01:00
|
|
|
|
2021-09-13 23:01:17 +01:00
|
|
|
[SameObject] readonly attribute HTMLCollection children;
|
|
|
|
|
|
2021-02-03 22:47:50 +01:00
|
|
|
// FIXME: These should all come from a GlobalEventHandlers mixin
|
|
|
|
|
attribute EventHandler onabort;
|
|
|
|
|
attribute EventHandler onauxclick;
|
|
|
|
|
attribute EventHandler onblur;
|
|
|
|
|
attribute EventHandler oncancel;
|
|
|
|
|
attribute EventHandler oncanplay;
|
|
|
|
|
attribute EventHandler oncanplaythrough;
|
|
|
|
|
attribute EventHandler onchange;
|
|
|
|
|
attribute EventHandler onclick;
|
|
|
|
|
attribute EventHandler onclose;
|
|
|
|
|
attribute EventHandler oncontextmenu;
|
|
|
|
|
attribute EventHandler oncuechange;
|
|
|
|
|
attribute EventHandler ondblclick;
|
|
|
|
|
attribute EventHandler ondrag;
|
|
|
|
|
attribute EventHandler ondragend;
|
|
|
|
|
attribute EventHandler ondragenter;
|
|
|
|
|
attribute EventHandler ondragleave;
|
|
|
|
|
attribute EventHandler ondragover;
|
|
|
|
|
attribute EventHandler ondragstart;
|
|
|
|
|
attribute EventHandler ondrop;
|
|
|
|
|
attribute EventHandler ondurationchange;
|
|
|
|
|
attribute EventHandler onemptied;
|
|
|
|
|
attribute EventHandler onended;
|
|
|
|
|
|
|
|
|
|
// FIXME: Should be an OnErrorEventHandler
|
|
|
|
|
attribute EventHandler onerror;
|
|
|
|
|
|
|
|
|
|
attribute EventHandler onfocus;
|
|
|
|
|
attribute EventHandler onformdata;
|
|
|
|
|
attribute EventHandler oninput;
|
|
|
|
|
attribute EventHandler oninvalid;
|
|
|
|
|
attribute EventHandler onkeydown;
|
|
|
|
|
attribute EventHandler onkeypress;
|
|
|
|
|
attribute EventHandler onkeyup;
|
|
|
|
|
attribute EventHandler onload;
|
|
|
|
|
attribute EventHandler onloadeddata;
|
|
|
|
|
attribute EventHandler onloadedmetadata;
|
|
|
|
|
attribute EventHandler onloadstart;
|
|
|
|
|
attribute EventHandler onmousedown;
|
|
|
|
|
[LegacyLenientThis] attribute EventHandler onmouseenter;
|
|
|
|
|
[LegacyLenientThis] attribute EventHandler onmouseleave;
|
|
|
|
|
attribute EventHandler onmousemove;
|
|
|
|
|
attribute EventHandler onmouseout;
|
|
|
|
|
attribute EventHandler onmouseover;
|
|
|
|
|
attribute EventHandler onmouseup;
|
|
|
|
|
attribute EventHandler onpause;
|
|
|
|
|
attribute EventHandler onplay;
|
|
|
|
|
attribute EventHandler onplaying;
|
|
|
|
|
attribute EventHandler onprogress;
|
|
|
|
|
attribute EventHandler onratechange;
|
|
|
|
|
attribute EventHandler onreset;
|
|
|
|
|
attribute EventHandler onresize;
|
|
|
|
|
attribute EventHandler onscroll;
|
|
|
|
|
attribute EventHandler onsecuritypolicyviolation;
|
|
|
|
|
attribute EventHandler onseeked;
|
|
|
|
|
attribute EventHandler onseeking;
|
|
|
|
|
attribute EventHandler onselect;
|
|
|
|
|
attribute EventHandler onslotchange;
|
|
|
|
|
attribute EventHandler onstalled;
|
|
|
|
|
attribute EventHandler onsubmit;
|
|
|
|
|
attribute EventHandler onsuspend;
|
|
|
|
|
attribute EventHandler ontimeupdate;
|
|
|
|
|
attribute EventHandler ontoggle;
|
|
|
|
|
attribute EventHandler onvolumechange;
|
|
|
|
|
attribute EventHandler onwaiting;
|
|
|
|
|
attribute EventHandler onwebkitanimationend;
|
|
|
|
|
attribute EventHandler onwebkitanimationiteration;
|
|
|
|
|
attribute EventHandler onwebkitanimationstart;
|
|
|
|
|
attribute EventHandler onwebkittransitionend;
|
|
|
|
|
attribute EventHandler onwheel;
|
|
|
|
|
|
2021-09-27 16:02:13 +02:00
|
|
|
readonly boolean hidden;
|
|
|
|
|
readonly DOMString visibilityState;
|
|
|
|
|
|
2020-12-09 21:26:42 +00:00
|
|
|
};
|