| 
									
										
										
										
											2023-11-04 08:38:46 -07:00
										 |  |  | #import <Animations/DocumentTimeline.idl> | 
					
						
							| 
									
										
										
										
											2024-05-07 14:49:31 -06:00
										 |  |  | #import <CSS/FontFaceSet.idl> | 
					
						
							| 
									
										
										
										
											2022-02-15 22:40:51 +03:30
										 |  |  | #import <CSS/StyleSheetList.idl> | 
					
						
							| 
									
										
										
										
											2024-02-18 14:27:25 +00:00
										 |  |  | #import <DOM/CDATASection.idl> | 
					
						
							| 
									
										
										
										
											2022-02-15 22:40:51 +03:30
										 |  |  | #import <DOM/Comment.idl> | 
					
						
							|  |  |  | #import <DOM/DOMImplementation.idl> | 
					
						
							|  |  |  | #import <DOM/DocumentFragment.idl> | 
					
						
							| 
									
										
										
										
											2024-03-08 19:27:24 +01:00
										 |  |  | #import <DOM/DocumentOrShadowRoot.idl> | 
					
						
							| 
									
										
										
										
											2022-02-15 22:40:51 +03:30
										 |  |  | #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> | 
					
						
							| 
									
										
										
										
											2022-07-27 19:51:49 +01:00
										 |  |  | #import <DOM/ParentNode.idl> | 
					
						
							| 
									
										
										
										
											2022-12-13 13:24:56 +01:00
										 |  |  | #import <DOM/ProcessingInstruction.idl> | 
					
						
							| 
									
										
										
										
											2022-02-15 22:40:51 +03:30
										 |  |  | #import <DOM/Range.idl> | 
					
						
							|  |  |  | #import <DOM/Text.idl> | 
					
						
							| 
									
										
										
										
											2022-03-09 14:37:48 +01:00
										 |  |  | #import <DOM/TreeWalker.idl> | 
					
						
							| 
									
										
										
										
											2024-04-01 08:45:59 +02:00
										 |  |  | #import <HTML/HTMLAllCollection.idl> | 
					
						
							| 
									
										
										
										
											2022-02-15 22:40:51 +03:30
										 |  |  | #import <HTML/HTMLElement.idl> | 
					
						
							|  |  |  | #import <HTML/HTMLHeadElement.idl> | 
					
						
							|  |  |  | #import <HTML/HTMLScriptElement.idl> | 
					
						
							| 
									
										
										
										
											2023-01-18 17:41:12 +00:00
										 |  |  | #import <HTML/Location.idl> | 
					
						
							| 
									
										
										
										
											2022-12-09 18:59:13 +00:00
										 |  |  | #import <Selection/Selection.idl> | 
					
						
							| 
									
										
										
										
											2022-02-15 22:40:51 +03:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-07-27 19:51:49 +01:00
										 |  |  | // https://dom.spec.whatwg.org/#document | 
					
						
							| 
									
										
										
										
											2024-02-15 14:43:44 -07:00
										 |  |  | // https://html.spec.whatwg.org/multipage/dom.html#the-document-object | 
					
						
							|  |  |  | [Exposed=Window, LegacyOverrideBuiltins] | 
					
						
							| 
									
										
										
										
											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
										 |  |  |     [PutForwards=href, LegacyUnforgeable] readonly attribute Location? location; | 
					
						
							| 
									
										
										
										
											2022-09-14 15:50:47 +01:00
										 |  |  |     attribute USVString domain; | 
					
						
							| 
									
										
										
										
											2021-09-12 14:59:49 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-13 06:08:06 +00:00
										 |  |  |     readonly attribute DOMImplementation implementation; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-12 13:19:35 -03:00
										 |  |  |     [ImplementedAs=url_string] readonly attribute USVString URL; | 
					
						
							|  |  |  |     readonly attribute USVString documentURI; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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-11-15 02:30:15 +02:00
										 |  |  |     WindowProxy? open(USVString url, DOMString name, DOMString features); | 
					
						
							| 
									
										
										
										
											2022-02-19 15:58:21 +01:00
										 |  |  |     [CEReactions] undefined close(); | 
					
						
							|  |  |  |     [CEReactions] undefined write(DOMString... text); | 
					
						
							|  |  |  |     [CEReactions] undefined writeln(DOMString... text); | 
					
						
							| 
									
										
										
										
											2022-02-15 17:36:27 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-06-25 20:55:58 +01:00
										 |  |  |     // FIXME: static Document parseHTMLUnsafe((TrustedHTML or DOMString) html); | 
					
						
							|  |  |  |     static Document parseHTMLUnsafe(DOMString html); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-03-14 16:35:28 +01:00
										 |  |  |     attribute DOMString cookie; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-18 13:58:48 -06:00
										 |  |  |     // https://html.spec.whatwg.org/#Document-partial | 
					
						
							|  |  |  |     [CEReactions, LegacyNullToEmptyString] attribute DOMString fgColor; | 
					
						
							|  |  |  |     [CEReactions, LegacyNullToEmptyString] attribute DOMString linkColor; | 
					
						
							|  |  |  |     [CEReactions, LegacyNullToEmptyString] attribute DOMString vlinkColor; | 
					
						
							|  |  |  |     [CEReactions, LegacyNullToEmptyString] attribute DOMString alinkColor; | 
					
						
							|  |  |  |     [CEReactions, LegacyNullToEmptyString] attribute DOMString bgColor; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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); | 
					
						
							| 
									
										
										
										
											2024-01-13 20:12:28 +13:00
										 |  |  |     HTMLCollection getElementsByName([FlyString] DOMString name); | 
					
						
							| 
									
										
										
										
											2024-05-12 14:50:45 +12:00
										 |  |  |     HTMLCollection getElementsByTagName([FlyString] DOMString tagName); | 
					
						
							|  |  |  |     HTMLCollection getElementsByTagNameNS([FlyString] DOMString? namespace, [FlyString] DOMString localName); | 
					
						
							| 
									
										
										
										
											2021-04-22 21:11:20 +02:00
										 |  |  |     HTMLCollection getElementsByClassName(DOMString className); | 
					
						
							| 
									
										
										
										
											2020-11-21 18:49:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-11-24 19:15:33 +01:00
										 |  |  |     [SameObject] readonly attribute HTMLCollection applets; | 
					
						
							|  |  |  |     [SameObject] readonly attribute HTMLCollection anchors; | 
					
						
							|  |  |  |     [SameObject] readonly attribute HTMLCollection images; | 
					
						
							|  |  |  |     [SameObject] readonly attribute HTMLCollection embeds; | 
					
						
							|  |  |  |     [SameObject] readonly attribute HTMLCollection plugins; | 
					
						
							|  |  |  |     [SameObject] readonly attribute HTMLCollection links; | 
					
						
							|  |  |  |     [SameObject] readonly attribute HTMLCollection forms; | 
					
						
							|  |  |  |     [SameObject] readonly attribute HTMLCollection scripts; | 
					
						
							| 
									
										
										
										
											2021-04-22 22:11:42 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-01 08:45:59 +02:00
										 |  |  |     readonly attribute HTMLAllCollection all; | 
					
						
							| 
									
										
										
										
											2022-09-18 02:17:11 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-14 07:25:49 +01:00
										 |  |  |     undefined clear(); | 
					
						
							|  |  |  |     undefined captureEvents(); | 
					
						
							|  |  |  |     undefined releaseEvents(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-01 01:45:18 +00:00
										 |  |  |     [CEReactions, NewObject] Element createElement(DOMString tagName, optional (DOMString or ElementCreationOptions) options = {}); | 
					
						
							| 
									
										
										
										
											2024-01-12 22:01:45 +13:00
										 |  |  |     [CEReactions, NewObject] Element createElementNS([FlyString] DOMString? namespace, DOMString qualifiedName, optional (DOMString or ElementCreationOptions) options = {}); | 
					
						
							| 
									
										
										
										
											2020-08-17 19:14:30 +01:00
										 |  |  |     DocumentFragment createDocumentFragment(); | 
					
						
							|  |  |  |     Text createTextNode(DOMString data); | 
					
						
							| 
									
										
										
										
											2024-02-18 14:27:25 +00:00
										 |  |  |     [NewObject] CDATASection createCDATASection(DOMString data); | 
					
						
							| 
									
										
										
										
											2020-08-17 19:14:30 +01:00
										 |  |  |     Comment createComment(DOMString data); | 
					
						
							| 
									
										
										
										
											2022-12-13 13:24:56 +01:00
										 |  |  |     [NewObject] ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-10 14:56:03 +01:00
										 |  |  |     [NewObject] Attr createAttribute(DOMString localName); | 
					
						
							| 
									
										
										
										
											2024-01-12 22:01:45 +13:00
										 |  |  |     [NewObject] Attr createAttributeNS([FlyString] DOMString? namespace, DOMString qualifiedName); | 
					
						
							| 
									
										
										
										
											2023-03-10 14:56:03 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											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); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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; | 
					
						
							| 
									
										
										
										
											2024-05-13 23:47:50 +12:00
										 |  |  |     [CEReactions] attribute DOMString dir; | 
					
						
							| 
									
										
										
										
											2023-03-01 01:45:18 +00:00
										 |  |  |     [CEReactions] attribute HTMLElement? body; | 
					
						
							| 
									
										
										
										
											2020-08-17 19:14:30 +01:00
										 |  |  |     readonly attribute HTMLHeadElement? head; | 
					
						
							| 
									
										
										
										
											2021-01-28 20:31:20 +00:00
										 |  |  |     readonly attribute HTMLScriptElement? currentScript; | 
					
						
							| 
									
										
										
										
											2020-06-21 00:59:28 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-01 22:18:00 +02:00
										 |  |  |     readonly attribute DOMString lastModified; | 
					
						
							| 
									
										
										
										
											2020-08-31 13:56:16 +01:00
										 |  |  |     readonly attribute DOMString readyState; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-01 01:45:18 +00:00
										 |  |  |     [CEReactions] attribute DOMString title; | 
					
						
							| 
									
										
										
										
											2020-12-06 21:39:36 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-07 19:30:05 -07:00
										 |  |  |     readonly attribute boolean hidden; | 
					
						
							|  |  |  |     readonly attribute DOMString visibilityState; | 
					
						
							| 
									
										
										
										
											2021-09-27 16:02:13 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											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-12-09 18:59:13 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     Selection? getSelection(); | 
					
						
							| 
									
										
										
										
											2023-11-04 08:38:46 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-02-10 15:23:19 +00:00
										 |  |  |     [CEReactions] attribute DOMString designMode; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-04 08:38:46 -07:00
										 |  |  |     // https://www.w3.org/TR/web-animations-1/#extensions-to-the-document-interface | 
					
						
							|  |  |  |     readonly attribute DocumentTimeline timeline; | 
					
						
							| 
									
										
										
										
											2024-02-06 06:02:51 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     // https://drafts.csswg.org/cssom-view/#extensions-to-the-document-interface | 
					
						
							|  |  |  |     Element? elementFromPoint(double x, double y); | 
					
						
							| 
									
										
										
										
											2024-02-09 13:50:44 -07:00
										 |  |  |     sequence<Element> elementsFromPoint(double x, double y); | 
					
						
							| 
									
										
										
										
											2024-02-15 23:14:55 +00:00
										 |  |  |     readonly attribute Element? scrollingElement; | 
					
						
							| 
									
										
										
										
											2024-02-15 16:47:29 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  |     // https://w3c.github.io/editing/docs/execCommand/ | 
					
						
							|  |  |  |     [CEReactions] boolean execCommand(DOMString commandId, optional boolean showUI = false, optional DOMString value = ""); | 
					
						
							|  |  |  |     boolean queryCommandEnabled(DOMString commandId); | 
					
						
							|  |  |  |     boolean queryCommandIndeterm(DOMString commandId); | 
					
						
							|  |  |  |     boolean queryCommandState(DOMString commandId); | 
					
						
							|  |  |  |     boolean queryCommandSupported(DOMString commandId); | 
					
						
							|  |  |  |     DOMString queryCommandValue(DOMString commandId); | 
					
						
							| 
									
										
										
										
											2020-12-09 21:26:42 +00:00
										 |  |  | }; | 
					
						
							| 
									
										
										
										
											2022-04-01 22:00:22 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-03-29 23:46:18 +01:00
										 |  |  | dictionary ElementCreationOptions { | 
					
						
							|  |  |  |     DOMString is; | 
					
						
							|  |  |  | }; | 
					
						
							| 
									
										
										
										
											2022-07-30 11:31:17 +01:00
										 |  |  | Document includes ParentNode; | 
					
						
							| 
									
										
										
										
											2022-07-27 19:51:06 +01:00
										 |  |  | Document includes GlobalEventHandlers; | 
					
						
							| 
									
										
										
										
											2024-03-08 19:27:24 +01:00
										 |  |  | Document includes DocumentOrShadowRoot; | 
					
						
							| 
									
										
										
										
											2024-05-07 14:49:31 -06:00
										 |  |  | Document includes FontFaceSource; |