2022-02-15 22:40:51 +03:30
|
|
|
#import <CSS/StyleSheetList.idl>
|
|
|
|
|
#import <DOM/Comment.idl>
|
|
|
|
|
#import <DOM/DOMImplementation.idl>
|
|
|
|
|
#import <DOM/DocumentFragment.idl>
|
|
|
|
|
#import <DOM/DocumentType.idl>
|
|
|
|
|
#import <DOM/Element.idl>
|
|
|
|
|
#import <DOM/Event.idl>
|
2022-03-30 23:35:42 +03:00
|
|
|
#import <DOM/EventHandler.idl>
|
2022-02-15 22:40:51 +03:30
|
|
|
#import <DOM/HTMLCollection.idl>
|
|
|
|
|
#import <DOM/Node.idl>
|
2022-03-09 14:34:32 +01:00
|
|
|
#import <DOM/NodeFilter.idl>
|
|
|
|
|
#import <DOM/NodeIterator.idl>
|
2022-02-15 22:40:51 +03:30
|
|
|
#import <DOM/NodeList.idl>
|
|
|
|
|
#import <DOM/Range.idl>
|
|
|
|
|
#import <DOM/Text.idl>
|
2022-03-09 14:37:48 +01:00
|
|
|
#import <DOM/TreeWalker.idl>
|
2022-02-15 22:40:51 +03:30
|
|
|
#import <HTML/HTMLElement.idl>
|
|
|
|
|
#import <HTML/HTMLHeadElement.idl>
|
|
|
|
|
#import <HTML/HTMLScriptElement.idl>
|
|
|
|
|
|
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-19 15:58:21 +01:00
|
|
|
[CEReactions] Document open(optional DOMString unused1, optional DOMString unused2);
|
2022-03-07 23:08:26 +01:00
|
|
|
// FIXME: implement ExceptionOr<HTML::Window> Document::open(...)
|
2022-02-19 15:58:21 +01:00
|
|
|
// WindowProxy? open(USVString url, DOMString name, DOMString features);
|
|
|
|
|
[CEReactions] undefined close();
|
|
|
|
|
[CEReactions] undefined write(DOMString... text);
|
|
|
|
|
[CEReactions] undefined writeln(DOMString... text);
|
2022-02-15 17:36:27 +01:00
|
|
|
|
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-09-27 16:02:13 +02:00
|
|
|
readonly boolean hidden;
|
|
|
|
|
readonly DOMString visibilityState;
|
|
|
|
|
|
2022-03-09 14:34:32 +01:00
|
|
|
[NewObject] NodeIterator createNodeIterator(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
|
2022-03-09 14:37:48 +01:00
|
|
|
[NewObject] TreeWalker createTreeWalker(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
|
2022-03-09 14:34:32 +01:00
|
|
|
|
2020-12-09 21:26:42 +00:00
|
|
|
};
|
2022-04-01 22:00:22 +03:00
|
|
|
|
|
|
|
|
HTMLElement includes GlobalEventHandlers;
|