11cb0ef41Sopenharmony_ci// GENERATED CONTENT - DO NOT EDIT
21cb0ef41Sopenharmony_ci// Content was automatically extracted by Reffy into webref
31cb0ef41Sopenharmony_ci// (https://github.com/w3c/webref)
41cb0ef41Sopenharmony_ci// Source: DOM Standard (https://dom.spec.whatwg.org/)
51cb0ef41Sopenharmony_ci
61cb0ef41Sopenharmony_ci[Exposed=(Window,Worker,AudioWorklet)]
71cb0ef41Sopenharmony_ciinterface Event {
81cb0ef41Sopenharmony_ci  constructor(DOMString type, optional EventInit eventInitDict = {});
91cb0ef41Sopenharmony_ci
101cb0ef41Sopenharmony_ci  readonly attribute DOMString type;
111cb0ef41Sopenharmony_ci  readonly attribute EventTarget? target;
121cb0ef41Sopenharmony_ci  readonly attribute EventTarget? srcElement; // legacy
131cb0ef41Sopenharmony_ci  readonly attribute EventTarget? currentTarget;
141cb0ef41Sopenharmony_ci  sequence<EventTarget> composedPath();
151cb0ef41Sopenharmony_ci
161cb0ef41Sopenharmony_ci  const unsigned short NONE = 0;
171cb0ef41Sopenharmony_ci  const unsigned short CAPTURING_PHASE = 1;
181cb0ef41Sopenharmony_ci  const unsigned short AT_TARGET = 2;
191cb0ef41Sopenharmony_ci  const unsigned short BUBBLING_PHASE = 3;
201cb0ef41Sopenharmony_ci  readonly attribute unsigned short eventPhase;
211cb0ef41Sopenharmony_ci
221cb0ef41Sopenharmony_ci  undefined stopPropagation();
231cb0ef41Sopenharmony_ci           attribute boolean cancelBubble; // legacy alias of .stopPropagation()
241cb0ef41Sopenharmony_ci  undefined stopImmediatePropagation();
251cb0ef41Sopenharmony_ci
261cb0ef41Sopenharmony_ci  readonly attribute boolean bubbles;
271cb0ef41Sopenharmony_ci  readonly attribute boolean cancelable;
281cb0ef41Sopenharmony_ci           attribute boolean returnValue;  // legacy
291cb0ef41Sopenharmony_ci  undefined preventDefault();
301cb0ef41Sopenharmony_ci  readonly attribute boolean defaultPrevented;
311cb0ef41Sopenharmony_ci  readonly attribute boolean composed;
321cb0ef41Sopenharmony_ci
331cb0ef41Sopenharmony_ci  [LegacyUnforgeable] readonly attribute boolean isTrusted;
341cb0ef41Sopenharmony_ci  readonly attribute DOMHighResTimeStamp timeStamp;
351cb0ef41Sopenharmony_ci
361cb0ef41Sopenharmony_ci  undefined initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false); // legacy
371cb0ef41Sopenharmony_ci};
381cb0ef41Sopenharmony_ci
391cb0ef41Sopenharmony_cidictionary EventInit {
401cb0ef41Sopenharmony_ci  boolean bubbles = false;
411cb0ef41Sopenharmony_ci  boolean cancelable = false;
421cb0ef41Sopenharmony_ci  boolean composed = false;
431cb0ef41Sopenharmony_ci};
441cb0ef41Sopenharmony_ci
451cb0ef41Sopenharmony_cipartial interface Window {
461cb0ef41Sopenharmony_ci  [Replaceable] readonly attribute (Event or undefined) event; // legacy
471cb0ef41Sopenharmony_ci};
481cb0ef41Sopenharmony_ci
491cb0ef41Sopenharmony_ci[Exposed=(Window,Worker)]
501cb0ef41Sopenharmony_ciinterface CustomEvent : Event {
511cb0ef41Sopenharmony_ci  constructor(DOMString type, optional CustomEventInit eventInitDict = {});
521cb0ef41Sopenharmony_ci
531cb0ef41Sopenharmony_ci  readonly attribute any detail;
541cb0ef41Sopenharmony_ci
551cb0ef41Sopenharmony_ci  undefined initCustomEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false, optional any detail = null); // legacy
561cb0ef41Sopenharmony_ci};
571cb0ef41Sopenharmony_ci
581cb0ef41Sopenharmony_cidictionary CustomEventInit : EventInit {
591cb0ef41Sopenharmony_ci  any detail = null;
601cb0ef41Sopenharmony_ci};
611cb0ef41Sopenharmony_ci
621cb0ef41Sopenharmony_ci[Exposed=(Window,Worker,AudioWorklet)]
631cb0ef41Sopenharmony_ciinterface EventTarget {
641cb0ef41Sopenharmony_ci  constructor();
651cb0ef41Sopenharmony_ci
661cb0ef41Sopenharmony_ci  undefined addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options = {});
671cb0ef41Sopenharmony_ci  undefined removeEventListener(DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options = {});
681cb0ef41Sopenharmony_ci  boolean dispatchEvent(Event event);
691cb0ef41Sopenharmony_ci};
701cb0ef41Sopenharmony_ci
711cb0ef41Sopenharmony_cicallback interface EventListener {
721cb0ef41Sopenharmony_ci  undefined handleEvent(Event event);
731cb0ef41Sopenharmony_ci};
741cb0ef41Sopenharmony_ci
751cb0ef41Sopenharmony_cidictionary EventListenerOptions {
761cb0ef41Sopenharmony_ci  boolean capture = false;
771cb0ef41Sopenharmony_ci};
781cb0ef41Sopenharmony_ci
791cb0ef41Sopenharmony_cidictionary AddEventListenerOptions : EventListenerOptions {
801cb0ef41Sopenharmony_ci  boolean passive = false;
811cb0ef41Sopenharmony_ci  boolean once = false;
821cb0ef41Sopenharmony_ci  AbortSignal signal;
831cb0ef41Sopenharmony_ci};
841cb0ef41Sopenharmony_ci
851cb0ef41Sopenharmony_ci[Exposed=(Window,Worker)]
861cb0ef41Sopenharmony_ciinterface AbortController {
871cb0ef41Sopenharmony_ci  constructor();
881cb0ef41Sopenharmony_ci
891cb0ef41Sopenharmony_ci  [SameObject] readonly attribute AbortSignal signal;
901cb0ef41Sopenharmony_ci
911cb0ef41Sopenharmony_ci  undefined abort();
921cb0ef41Sopenharmony_ci};
931cb0ef41Sopenharmony_ci
941cb0ef41Sopenharmony_ci[Exposed=(Window,Worker)]
951cb0ef41Sopenharmony_ciinterface AbortSignal : EventTarget {
961cb0ef41Sopenharmony_ci  [NewObject] static AbortSignal abort();
971cb0ef41Sopenharmony_ci
981cb0ef41Sopenharmony_ci  readonly attribute boolean aborted;
991cb0ef41Sopenharmony_ci
1001cb0ef41Sopenharmony_ci  attribute EventHandler onabort;
1011cb0ef41Sopenharmony_ci};
1021cb0ef41Sopenharmony_ciinterface mixin NonElementParentNode {
1031cb0ef41Sopenharmony_ci  Element? getElementById(DOMString elementId);
1041cb0ef41Sopenharmony_ci};
1051cb0ef41Sopenharmony_ciDocument includes NonElementParentNode;
1061cb0ef41Sopenharmony_ciDocumentFragment includes NonElementParentNode;
1071cb0ef41Sopenharmony_ci
1081cb0ef41Sopenharmony_ciinterface mixin DocumentOrShadowRoot {
1091cb0ef41Sopenharmony_ci};
1101cb0ef41Sopenharmony_ciDocument includes DocumentOrShadowRoot;
1111cb0ef41Sopenharmony_ciShadowRoot includes DocumentOrShadowRoot;
1121cb0ef41Sopenharmony_ci
1131cb0ef41Sopenharmony_ciinterface mixin ParentNode {
1141cb0ef41Sopenharmony_ci  [SameObject] readonly attribute HTMLCollection children;
1151cb0ef41Sopenharmony_ci  readonly attribute Element? firstElementChild;
1161cb0ef41Sopenharmony_ci  readonly attribute Element? lastElementChild;
1171cb0ef41Sopenharmony_ci  readonly attribute unsigned long childElementCount;
1181cb0ef41Sopenharmony_ci
1191cb0ef41Sopenharmony_ci  [CEReactions, Unscopable] undefined prepend((Node or DOMString)... nodes);
1201cb0ef41Sopenharmony_ci  [CEReactions, Unscopable] undefined append((Node or DOMString)... nodes);
1211cb0ef41Sopenharmony_ci  [CEReactions, Unscopable] undefined replaceChildren((Node or DOMString)... nodes);
1221cb0ef41Sopenharmony_ci
1231cb0ef41Sopenharmony_ci  Element? querySelector(DOMString selectors);
1241cb0ef41Sopenharmony_ci  [NewObject] NodeList querySelectorAll(DOMString selectors);
1251cb0ef41Sopenharmony_ci};
1261cb0ef41Sopenharmony_ciDocument includes ParentNode;
1271cb0ef41Sopenharmony_ciDocumentFragment includes ParentNode;
1281cb0ef41Sopenharmony_ciElement includes ParentNode;
1291cb0ef41Sopenharmony_ci
1301cb0ef41Sopenharmony_ciinterface mixin NonDocumentTypeChildNode {
1311cb0ef41Sopenharmony_ci  readonly attribute Element? previousElementSibling;
1321cb0ef41Sopenharmony_ci  readonly attribute Element? nextElementSibling;
1331cb0ef41Sopenharmony_ci};
1341cb0ef41Sopenharmony_ciElement includes NonDocumentTypeChildNode;
1351cb0ef41Sopenharmony_ciCharacterData includes NonDocumentTypeChildNode;
1361cb0ef41Sopenharmony_ci
1371cb0ef41Sopenharmony_ciinterface mixin ChildNode {
1381cb0ef41Sopenharmony_ci  [CEReactions, Unscopable] undefined before((Node or DOMString)... nodes);
1391cb0ef41Sopenharmony_ci  [CEReactions, Unscopable] undefined after((Node or DOMString)... nodes);
1401cb0ef41Sopenharmony_ci  [CEReactions, Unscopable] undefined replaceWith((Node or DOMString)... nodes);
1411cb0ef41Sopenharmony_ci  [CEReactions, Unscopable] undefined remove();
1421cb0ef41Sopenharmony_ci};
1431cb0ef41Sopenharmony_ciDocumentType includes ChildNode;
1441cb0ef41Sopenharmony_ciElement includes ChildNode;
1451cb0ef41Sopenharmony_ciCharacterData includes ChildNode;
1461cb0ef41Sopenharmony_ci
1471cb0ef41Sopenharmony_ciinterface mixin Slottable {
1481cb0ef41Sopenharmony_ci  readonly attribute HTMLSlotElement? assignedSlot;
1491cb0ef41Sopenharmony_ci};
1501cb0ef41Sopenharmony_ciElement includes Slottable;
1511cb0ef41Sopenharmony_ciText includes Slottable;
1521cb0ef41Sopenharmony_ci
1531cb0ef41Sopenharmony_ci[Exposed=Window]
1541cb0ef41Sopenharmony_ciinterface NodeList {
1551cb0ef41Sopenharmony_ci  getter Node? item(unsigned long index);
1561cb0ef41Sopenharmony_ci  readonly attribute unsigned long length;
1571cb0ef41Sopenharmony_ci  iterable<Node>;
1581cb0ef41Sopenharmony_ci};
1591cb0ef41Sopenharmony_ci
1601cb0ef41Sopenharmony_ci[Exposed=Window, LegacyUnenumerableNamedProperties]
1611cb0ef41Sopenharmony_ciinterface HTMLCollection {
1621cb0ef41Sopenharmony_ci  readonly attribute unsigned long length;
1631cb0ef41Sopenharmony_ci  getter Element? item(unsigned long index);
1641cb0ef41Sopenharmony_ci  getter Element? namedItem(DOMString name);
1651cb0ef41Sopenharmony_ci};
1661cb0ef41Sopenharmony_ci
1671cb0ef41Sopenharmony_ci[Exposed=Window]
1681cb0ef41Sopenharmony_ciinterface MutationObserver {
1691cb0ef41Sopenharmony_ci  constructor(MutationCallback callback);
1701cb0ef41Sopenharmony_ci
1711cb0ef41Sopenharmony_ci  undefined observe(Node target, optional MutationObserverInit options = {});
1721cb0ef41Sopenharmony_ci  undefined disconnect();
1731cb0ef41Sopenharmony_ci  sequence<MutationRecord> takeRecords();
1741cb0ef41Sopenharmony_ci};
1751cb0ef41Sopenharmony_ci
1761cb0ef41Sopenharmony_cicallback MutationCallback = undefined (sequence<MutationRecord> mutations, MutationObserver observer);
1771cb0ef41Sopenharmony_ci
1781cb0ef41Sopenharmony_cidictionary MutationObserverInit {
1791cb0ef41Sopenharmony_ci  boolean childList = false;
1801cb0ef41Sopenharmony_ci  boolean attributes;
1811cb0ef41Sopenharmony_ci  boolean characterData;
1821cb0ef41Sopenharmony_ci  boolean subtree = false;
1831cb0ef41Sopenharmony_ci  boolean attributeOldValue;
1841cb0ef41Sopenharmony_ci  boolean characterDataOldValue;
1851cb0ef41Sopenharmony_ci  sequence<DOMString> attributeFilter;
1861cb0ef41Sopenharmony_ci};
1871cb0ef41Sopenharmony_ci
1881cb0ef41Sopenharmony_ci[Exposed=Window]
1891cb0ef41Sopenharmony_ciinterface MutationRecord {
1901cb0ef41Sopenharmony_ci  readonly attribute DOMString type;
1911cb0ef41Sopenharmony_ci  [SameObject] readonly attribute Node target;
1921cb0ef41Sopenharmony_ci  [SameObject] readonly attribute NodeList addedNodes;
1931cb0ef41Sopenharmony_ci  [SameObject] readonly attribute NodeList removedNodes;
1941cb0ef41Sopenharmony_ci  readonly attribute Node? previousSibling;
1951cb0ef41Sopenharmony_ci  readonly attribute Node? nextSibling;
1961cb0ef41Sopenharmony_ci  readonly attribute DOMString? attributeName;
1971cb0ef41Sopenharmony_ci  readonly attribute DOMString? attributeNamespace;
1981cb0ef41Sopenharmony_ci  readonly attribute DOMString? oldValue;
1991cb0ef41Sopenharmony_ci};
2001cb0ef41Sopenharmony_ci
2011cb0ef41Sopenharmony_ci[Exposed=Window]
2021cb0ef41Sopenharmony_ciinterface Node : EventTarget {
2031cb0ef41Sopenharmony_ci  const unsigned short ELEMENT_NODE = 1;
2041cb0ef41Sopenharmony_ci  const unsigned short ATTRIBUTE_NODE = 2;
2051cb0ef41Sopenharmony_ci  const unsigned short TEXT_NODE = 3;
2061cb0ef41Sopenharmony_ci  const unsigned short CDATA_SECTION_NODE = 4;
2071cb0ef41Sopenharmony_ci  const unsigned short ENTITY_REFERENCE_NODE = 5; // legacy
2081cb0ef41Sopenharmony_ci  const unsigned short ENTITY_NODE = 6; // legacy
2091cb0ef41Sopenharmony_ci  const unsigned short PROCESSING_INSTRUCTION_NODE = 7;
2101cb0ef41Sopenharmony_ci  const unsigned short COMMENT_NODE = 8;
2111cb0ef41Sopenharmony_ci  const unsigned short DOCUMENT_NODE = 9;
2121cb0ef41Sopenharmony_ci  const unsigned short DOCUMENT_TYPE_NODE = 10;
2131cb0ef41Sopenharmony_ci  const unsigned short DOCUMENT_FRAGMENT_NODE = 11;
2141cb0ef41Sopenharmony_ci  const unsigned short NOTATION_NODE = 12; // legacy
2151cb0ef41Sopenharmony_ci  readonly attribute unsigned short nodeType;
2161cb0ef41Sopenharmony_ci  readonly attribute DOMString nodeName;
2171cb0ef41Sopenharmony_ci
2181cb0ef41Sopenharmony_ci  readonly attribute USVString baseURI;
2191cb0ef41Sopenharmony_ci
2201cb0ef41Sopenharmony_ci  readonly attribute boolean isConnected;
2211cb0ef41Sopenharmony_ci  readonly attribute Document? ownerDocument;
2221cb0ef41Sopenharmony_ci  Node getRootNode(optional GetRootNodeOptions options = {});
2231cb0ef41Sopenharmony_ci  readonly attribute Node? parentNode;
2241cb0ef41Sopenharmony_ci  readonly attribute Element? parentElement;
2251cb0ef41Sopenharmony_ci  boolean hasChildNodes();
2261cb0ef41Sopenharmony_ci  [SameObject] readonly attribute NodeList childNodes;
2271cb0ef41Sopenharmony_ci  readonly attribute Node? firstChild;
2281cb0ef41Sopenharmony_ci  readonly attribute Node? lastChild;
2291cb0ef41Sopenharmony_ci  readonly attribute Node? previousSibling;
2301cb0ef41Sopenharmony_ci  readonly attribute Node? nextSibling;
2311cb0ef41Sopenharmony_ci
2321cb0ef41Sopenharmony_ci  [CEReactions] attribute DOMString? nodeValue;
2331cb0ef41Sopenharmony_ci  [CEReactions] attribute DOMString? textContent;
2341cb0ef41Sopenharmony_ci  [CEReactions] undefined normalize();
2351cb0ef41Sopenharmony_ci
2361cb0ef41Sopenharmony_ci  [CEReactions, NewObject] Node cloneNode(optional boolean deep = false);
2371cb0ef41Sopenharmony_ci  boolean isEqualNode(Node? otherNode);
2381cb0ef41Sopenharmony_ci  boolean isSameNode(Node? otherNode); // legacy alias of ===
2391cb0ef41Sopenharmony_ci
2401cb0ef41Sopenharmony_ci  const unsigned short DOCUMENT_POSITION_DISCONNECTED = 0x01;
2411cb0ef41Sopenharmony_ci  const unsigned short DOCUMENT_POSITION_PRECEDING = 0x02;
2421cb0ef41Sopenharmony_ci  const unsigned short DOCUMENT_POSITION_FOLLOWING = 0x04;
2431cb0ef41Sopenharmony_ci  const unsigned short DOCUMENT_POSITION_CONTAINS = 0x08;
2441cb0ef41Sopenharmony_ci  const unsigned short DOCUMENT_POSITION_CONTAINED_BY = 0x10;
2451cb0ef41Sopenharmony_ci  const unsigned short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
2461cb0ef41Sopenharmony_ci  unsigned short compareDocumentPosition(Node other);
2471cb0ef41Sopenharmony_ci  boolean contains(Node? other);
2481cb0ef41Sopenharmony_ci
2491cb0ef41Sopenharmony_ci  DOMString? lookupPrefix(DOMString? namespace);
2501cb0ef41Sopenharmony_ci  DOMString? lookupNamespaceURI(DOMString? prefix);
2511cb0ef41Sopenharmony_ci  boolean isDefaultNamespace(DOMString? namespace);
2521cb0ef41Sopenharmony_ci
2531cb0ef41Sopenharmony_ci  [CEReactions] Node insertBefore(Node node, Node? child);
2541cb0ef41Sopenharmony_ci  [CEReactions] Node appendChild(Node node);
2551cb0ef41Sopenharmony_ci  [CEReactions] Node replaceChild(Node node, Node child);
2561cb0ef41Sopenharmony_ci  [CEReactions] Node removeChild(Node child);
2571cb0ef41Sopenharmony_ci};
2581cb0ef41Sopenharmony_ci
2591cb0ef41Sopenharmony_cidictionary GetRootNodeOptions {
2601cb0ef41Sopenharmony_ci  boolean composed = false;
2611cb0ef41Sopenharmony_ci};
2621cb0ef41Sopenharmony_ci
2631cb0ef41Sopenharmony_ci[Exposed=Window]
2641cb0ef41Sopenharmony_ciinterface Document : Node {
2651cb0ef41Sopenharmony_ci  constructor();
2661cb0ef41Sopenharmony_ci
2671cb0ef41Sopenharmony_ci  [SameObject] readonly attribute DOMImplementation implementation;
2681cb0ef41Sopenharmony_ci  readonly attribute USVString URL;
2691cb0ef41Sopenharmony_ci  readonly attribute USVString documentURI;
2701cb0ef41Sopenharmony_ci  readonly attribute DOMString compatMode;
2711cb0ef41Sopenharmony_ci  readonly attribute DOMString characterSet;
2721cb0ef41Sopenharmony_ci  readonly attribute DOMString charset; // legacy alias of .characterSet
2731cb0ef41Sopenharmony_ci  readonly attribute DOMString inputEncoding; // legacy alias of .characterSet
2741cb0ef41Sopenharmony_ci  readonly attribute DOMString contentType;
2751cb0ef41Sopenharmony_ci
2761cb0ef41Sopenharmony_ci  readonly attribute DocumentType? doctype;
2771cb0ef41Sopenharmony_ci  readonly attribute Element? documentElement;
2781cb0ef41Sopenharmony_ci  HTMLCollection getElementsByTagName(DOMString qualifiedName);
2791cb0ef41Sopenharmony_ci  HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
2801cb0ef41Sopenharmony_ci  HTMLCollection getElementsByClassName(DOMString classNames);
2811cb0ef41Sopenharmony_ci
2821cb0ef41Sopenharmony_ci  [CEReactions, NewObject] Element createElement(DOMString localName, optional (DOMString or ElementCreationOptions) options = {});
2831cb0ef41Sopenharmony_ci  [CEReactions, NewObject] Element createElementNS(DOMString? namespace, DOMString qualifiedName, optional (DOMString or ElementCreationOptions) options = {});
2841cb0ef41Sopenharmony_ci  [NewObject] DocumentFragment createDocumentFragment();
2851cb0ef41Sopenharmony_ci  [NewObject] Text createTextNode(DOMString data);
2861cb0ef41Sopenharmony_ci  [NewObject] CDATASection createCDATASection(DOMString data);
2871cb0ef41Sopenharmony_ci  [NewObject] Comment createComment(DOMString data);
2881cb0ef41Sopenharmony_ci  [NewObject] ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data);
2891cb0ef41Sopenharmony_ci
2901cb0ef41Sopenharmony_ci  [CEReactions, NewObject] Node importNode(Node node, optional boolean deep = false);
2911cb0ef41Sopenharmony_ci  [CEReactions] Node adoptNode(Node node);
2921cb0ef41Sopenharmony_ci
2931cb0ef41Sopenharmony_ci  [NewObject] Attr createAttribute(DOMString localName);
2941cb0ef41Sopenharmony_ci  [NewObject] Attr createAttributeNS(DOMString? namespace, DOMString qualifiedName);
2951cb0ef41Sopenharmony_ci
2961cb0ef41Sopenharmony_ci  [NewObject] Event createEvent(DOMString interface); // legacy
2971cb0ef41Sopenharmony_ci
2981cb0ef41Sopenharmony_ci  [NewObject] Range createRange();
2991cb0ef41Sopenharmony_ci
3001cb0ef41Sopenharmony_ci  // NodeFilter.SHOW_ALL = 0xFFFFFFFF
3011cb0ef41Sopenharmony_ci  [NewObject] NodeIterator createNodeIterator(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
3021cb0ef41Sopenharmony_ci  [NewObject] TreeWalker createTreeWalker(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
3031cb0ef41Sopenharmony_ci};
3041cb0ef41Sopenharmony_ci
3051cb0ef41Sopenharmony_ci[Exposed=Window]
3061cb0ef41Sopenharmony_ciinterface XMLDocument : Document {};
3071cb0ef41Sopenharmony_ci
3081cb0ef41Sopenharmony_cidictionary ElementCreationOptions {
3091cb0ef41Sopenharmony_ci  DOMString is;
3101cb0ef41Sopenharmony_ci};
3111cb0ef41Sopenharmony_ci
3121cb0ef41Sopenharmony_ci[Exposed=Window]
3131cb0ef41Sopenharmony_ciinterface DOMImplementation {
3141cb0ef41Sopenharmony_ci  [NewObject] DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId);
3151cb0ef41Sopenharmony_ci  [NewObject] XMLDocument createDocument(DOMString? namespace, [LegacyNullToEmptyString] DOMString qualifiedName, optional DocumentType? doctype = null);
3161cb0ef41Sopenharmony_ci  [NewObject] Document createHTMLDocument(optional DOMString title);
3171cb0ef41Sopenharmony_ci
3181cb0ef41Sopenharmony_ci  boolean hasFeature(); // useless; always returns true
3191cb0ef41Sopenharmony_ci};
3201cb0ef41Sopenharmony_ci
3211cb0ef41Sopenharmony_ci[Exposed=Window]
3221cb0ef41Sopenharmony_ciinterface DocumentType : Node {
3231cb0ef41Sopenharmony_ci  readonly attribute DOMString name;
3241cb0ef41Sopenharmony_ci  readonly attribute DOMString publicId;
3251cb0ef41Sopenharmony_ci  readonly attribute DOMString systemId;
3261cb0ef41Sopenharmony_ci};
3271cb0ef41Sopenharmony_ci
3281cb0ef41Sopenharmony_ci[Exposed=Window]
3291cb0ef41Sopenharmony_ciinterface DocumentFragment : Node {
3301cb0ef41Sopenharmony_ci  constructor();
3311cb0ef41Sopenharmony_ci};
3321cb0ef41Sopenharmony_ci
3331cb0ef41Sopenharmony_ci[Exposed=Window]
3341cb0ef41Sopenharmony_ciinterface ShadowRoot : DocumentFragment {
3351cb0ef41Sopenharmony_ci  readonly attribute ShadowRootMode mode;
3361cb0ef41Sopenharmony_ci  readonly attribute boolean delegatesFocus;
3371cb0ef41Sopenharmony_ci  readonly attribute SlotAssignmentMode slotAssignment;
3381cb0ef41Sopenharmony_ci  readonly attribute Element host;
3391cb0ef41Sopenharmony_ci  attribute EventHandler onslotchange;
3401cb0ef41Sopenharmony_ci};
3411cb0ef41Sopenharmony_ci
3421cb0ef41Sopenharmony_cienum ShadowRootMode { "open", "closed" };
3431cb0ef41Sopenharmony_cienum SlotAssignmentMode { "manual", "named" };
3441cb0ef41Sopenharmony_ci
3451cb0ef41Sopenharmony_ci[Exposed=Window]
3461cb0ef41Sopenharmony_ciinterface Element : Node {
3471cb0ef41Sopenharmony_ci  readonly attribute DOMString? namespaceURI;
3481cb0ef41Sopenharmony_ci  readonly attribute DOMString? prefix;
3491cb0ef41Sopenharmony_ci  readonly attribute DOMString localName;
3501cb0ef41Sopenharmony_ci  readonly attribute DOMString tagName;
3511cb0ef41Sopenharmony_ci
3521cb0ef41Sopenharmony_ci  [CEReactions] attribute DOMString id;
3531cb0ef41Sopenharmony_ci  [CEReactions] attribute DOMString className;
3541cb0ef41Sopenharmony_ci  [SameObject, PutForwards=value] readonly attribute DOMTokenList classList;
3551cb0ef41Sopenharmony_ci  [CEReactions, Unscopable] attribute DOMString slot;
3561cb0ef41Sopenharmony_ci
3571cb0ef41Sopenharmony_ci  boolean hasAttributes();
3581cb0ef41Sopenharmony_ci  [SameObject] readonly attribute NamedNodeMap attributes;
3591cb0ef41Sopenharmony_ci  sequence<DOMString> getAttributeNames();
3601cb0ef41Sopenharmony_ci  DOMString? getAttribute(DOMString qualifiedName);
3611cb0ef41Sopenharmony_ci  DOMString? getAttributeNS(DOMString? namespace, DOMString localName);
3621cb0ef41Sopenharmony_ci  [CEReactions] undefined setAttribute(DOMString qualifiedName, DOMString value);
3631cb0ef41Sopenharmony_ci  [CEReactions] undefined setAttributeNS(DOMString? namespace, DOMString qualifiedName, DOMString value);
3641cb0ef41Sopenharmony_ci  [CEReactions] undefined removeAttribute(DOMString qualifiedName);
3651cb0ef41Sopenharmony_ci  [CEReactions] undefined removeAttributeNS(DOMString? namespace, DOMString localName);
3661cb0ef41Sopenharmony_ci  [CEReactions] boolean toggleAttribute(DOMString qualifiedName, optional boolean force);
3671cb0ef41Sopenharmony_ci  boolean hasAttribute(DOMString qualifiedName);
3681cb0ef41Sopenharmony_ci  boolean hasAttributeNS(DOMString? namespace, DOMString localName);
3691cb0ef41Sopenharmony_ci
3701cb0ef41Sopenharmony_ci  Attr? getAttributeNode(DOMString qualifiedName);
3711cb0ef41Sopenharmony_ci  Attr? getAttributeNodeNS(DOMString? namespace, DOMString localName);
3721cb0ef41Sopenharmony_ci  [CEReactions] Attr? setAttributeNode(Attr attr);
3731cb0ef41Sopenharmony_ci  [CEReactions] Attr? setAttributeNodeNS(Attr attr);
3741cb0ef41Sopenharmony_ci  [CEReactions] Attr removeAttributeNode(Attr attr);
3751cb0ef41Sopenharmony_ci
3761cb0ef41Sopenharmony_ci  ShadowRoot attachShadow(ShadowRootInit init);
3771cb0ef41Sopenharmony_ci  readonly attribute ShadowRoot? shadowRoot;
3781cb0ef41Sopenharmony_ci
3791cb0ef41Sopenharmony_ci  Element? closest(DOMString selectors);
3801cb0ef41Sopenharmony_ci  boolean matches(DOMString selectors);
3811cb0ef41Sopenharmony_ci  boolean webkitMatchesSelector(DOMString selectors); // legacy alias of .matches
3821cb0ef41Sopenharmony_ci
3831cb0ef41Sopenharmony_ci  HTMLCollection getElementsByTagName(DOMString qualifiedName);
3841cb0ef41Sopenharmony_ci  HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
3851cb0ef41Sopenharmony_ci  HTMLCollection getElementsByClassName(DOMString classNames);
3861cb0ef41Sopenharmony_ci
3871cb0ef41Sopenharmony_ci  [CEReactions] Element? insertAdjacentElement(DOMString where, Element element); // legacy
3881cb0ef41Sopenharmony_ci  undefined insertAdjacentText(DOMString where, DOMString data); // legacy
3891cb0ef41Sopenharmony_ci};
3901cb0ef41Sopenharmony_ci
3911cb0ef41Sopenharmony_cidictionary ShadowRootInit {
3921cb0ef41Sopenharmony_ci  required ShadowRootMode mode;
3931cb0ef41Sopenharmony_ci  boolean delegatesFocus = false;
3941cb0ef41Sopenharmony_ci  SlotAssignmentMode slotAssignment = "named";
3951cb0ef41Sopenharmony_ci};
3961cb0ef41Sopenharmony_ci
3971cb0ef41Sopenharmony_ci[Exposed=Window,
3981cb0ef41Sopenharmony_ci LegacyUnenumerableNamedProperties]
3991cb0ef41Sopenharmony_ciinterface NamedNodeMap {
4001cb0ef41Sopenharmony_ci  readonly attribute unsigned long length;
4011cb0ef41Sopenharmony_ci  getter Attr? item(unsigned long index);
4021cb0ef41Sopenharmony_ci  getter Attr? getNamedItem(DOMString qualifiedName);
4031cb0ef41Sopenharmony_ci  Attr? getNamedItemNS(DOMString? namespace, DOMString localName);
4041cb0ef41Sopenharmony_ci  [CEReactions] Attr? setNamedItem(Attr attr);
4051cb0ef41Sopenharmony_ci  [CEReactions] Attr? setNamedItemNS(Attr attr);
4061cb0ef41Sopenharmony_ci  [CEReactions] Attr removeNamedItem(DOMString qualifiedName);
4071cb0ef41Sopenharmony_ci  [CEReactions] Attr removeNamedItemNS(DOMString? namespace, DOMString localName);
4081cb0ef41Sopenharmony_ci};
4091cb0ef41Sopenharmony_ci
4101cb0ef41Sopenharmony_ci[Exposed=Window]
4111cb0ef41Sopenharmony_ciinterface Attr : Node {
4121cb0ef41Sopenharmony_ci  readonly attribute DOMString? namespaceURI;
4131cb0ef41Sopenharmony_ci  readonly attribute DOMString? prefix;
4141cb0ef41Sopenharmony_ci  readonly attribute DOMString localName;
4151cb0ef41Sopenharmony_ci  readonly attribute DOMString name;
4161cb0ef41Sopenharmony_ci  [CEReactions] attribute DOMString value;
4171cb0ef41Sopenharmony_ci
4181cb0ef41Sopenharmony_ci  readonly attribute Element? ownerElement;
4191cb0ef41Sopenharmony_ci
4201cb0ef41Sopenharmony_ci  readonly attribute boolean specified; // useless; always returns true
4211cb0ef41Sopenharmony_ci};
4221cb0ef41Sopenharmony_ci[Exposed=Window]
4231cb0ef41Sopenharmony_ciinterface CharacterData : Node {
4241cb0ef41Sopenharmony_ci  attribute [LegacyNullToEmptyString] DOMString data;
4251cb0ef41Sopenharmony_ci  readonly attribute unsigned long length;
4261cb0ef41Sopenharmony_ci  DOMString substringData(unsigned long offset, unsigned long count);
4271cb0ef41Sopenharmony_ci  undefined appendData(DOMString data);
4281cb0ef41Sopenharmony_ci  undefined insertData(unsigned long offset, DOMString data);
4291cb0ef41Sopenharmony_ci  undefined deleteData(unsigned long offset, unsigned long count);
4301cb0ef41Sopenharmony_ci  undefined replaceData(unsigned long offset, unsigned long count, DOMString data);
4311cb0ef41Sopenharmony_ci};
4321cb0ef41Sopenharmony_ci
4331cb0ef41Sopenharmony_ci[Exposed=Window]
4341cb0ef41Sopenharmony_ciinterface Text : CharacterData {
4351cb0ef41Sopenharmony_ci  constructor(optional DOMString data = "");
4361cb0ef41Sopenharmony_ci
4371cb0ef41Sopenharmony_ci  [NewObject] Text splitText(unsigned long offset);
4381cb0ef41Sopenharmony_ci  readonly attribute DOMString wholeText;
4391cb0ef41Sopenharmony_ci};
4401cb0ef41Sopenharmony_ci
4411cb0ef41Sopenharmony_ci[Exposed=Window]
4421cb0ef41Sopenharmony_ciinterface CDATASection : Text {
4431cb0ef41Sopenharmony_ci};
4441cb0ef41Sopenharmony_ci[Exposed=Window]
4451cb0ef41Sopenharmony_ciinterface ProcessingInstruction : CharacterData {
4461cb0ef41Sopenharmony_ci  readonly attribute DOMString target;
4471cb0ef41Sopenharmony_ci};
4481cb0ef41Sopenharmony_ci[Exposed=Window]
4491cb0ef41Sopenharmony_ciinterface Comment : CharacterData {
4501cb0ef41Sopenharmony_ci  constructor(optional DOMString data = "");
4511cb0ef41Sopenharmony_ci};
4521cb0ef41Sopenharmony_ci
4531cb0ef41Sopenharmony_ci[Exposed=Window]
4541cb0ef41Sopenharmony_ciinterface AbstractRange {
4551cb0ef41Sopenharmony_ci  readonly attribute Node startContainer;
4561cb0ef41Sopenharmony_ci  readonly attribute unsigned long startOffset;
4571cb0ef41Sopenharmony_ci  readonly attribute Node endContainer;
4581cb0ef41Sopenharmony_ci  readonly attribute unsigned long endOffset;
4591cb0ef41Sopenharmony_ci  readonly attribute boolean collapsed;
4601cb0ef41Sopenharmony_ci};
4611cb0ef41Sopenharmony_ci
4621cb0ef41Sopenharmony_cidictionary StaticRangeInit {
4631cb0ef41Sopenharmony_ci  required Node startContainer;
4641cb0ef41Sopenharmony_ci  required unsigned long startOffset;
4651cb0ef41Sopenharmony_ci  required Node endContainer;
4661cb0ef41Sopenharmony_ci  required unsigned long endOffset;
4671cb0ef41Sopenharmony_ci};
4681cb0ef41Sopenharmony_ci
4691cb0ef41Sopenharmony_ci[Exposed=Window]
4701cb0ef41Sopenharmony_ciinterface StaticRange : AbstractRange {
4711cb0ef41Sopenharmony_ci  constructor(StaticRangeInit init);
4721cb0ef41Sopenharmony_ci};
4731cb0ef41Sopenharmony_ci
4741cb0ef41Sopenharmony_ci[Exposed=Window]
4751cb0ef41Sopenharmony_ciinterface Range : AbstractRange {
4761cb0ef41Sopenharmony_ci  constructor();
4771cb0ef41Sopenharmony_ci
4781cb0ef41Sopenharmony_ci  readonly attribute Node commonAncestorContainer;
4791cb0ef41Sopenharmony_ci
4801cb0ef41Sopenharmony_ci  undefined setStart(Node node, unsigned long offset);
4811cb0ef41Sopenharmony_ci  undefined setEnd(Node node, unsigned long offset);
4821cb0ef41Sopenharmony_ci  undefined setStartBefore(Node node);
4831cb0ef41Sopenharmony_ci  undefined setStartAfter(Node node);
4841cb0ef41Sopenharmony_ci  undefined setEndBefore(Node node);
4851cb0ef41Sopenharmony_ci  undefined setEndAfter(Node node);
4861cb0ef41Sopenharmony_ci  undefined collapse(optional boolean toStart = false);
4871cb0ef41Sopenharmony_ci  undefined selectNode(Node node);
4881cb0ef41Sopenharmony_ci  undefined selectNodeContents(Node node);
4891cb0ef41Sopenharmony_ci
4901cb0ef41Sopenharmony_ci  const unsigned short START_TO_START = 0;
4911cb0ef41Sopenharmony_ci  const unsigned short START_TO_END = 1;
4921cb0ef41Sopenharmony_ci  const unsigned short END_TO_END = 2;
4931cb0ef41Sopenharmony_ci  const unsigned short END_TO_START = 3;
4941cb0ef41Sopenharmony_ci  short compareBoundaryPoints(unsigned short how, Range sourceRange);
4951cb0ef41Sopenharmony_ci
4961cb0ef41Sopenharmony_ci  [CEReactions] undefined deleteContents();
4971cb0ef41Sopenharmony_ci  [CEReactions, NewObject] DocumentFragment extractContents();
4981cb0ef41Sopenharmony_ci  [CEReactions, NewObject] DocumentFragment cloneContents();
4991cb0ef41Sopenharmony_ci  [CEReactions] undefined insertNode(Node node);
5001cb0ef41Sopenharmony_ci  [CEReactions] undefined surroundContents(Node newParent);
5011cb0ef41Sopenharmony_ci
5021cb0ef41Sopenharmony_ci  [NewObject] Range cloneRange();
5031cb0ef41Sopenharmony_ci  undefined detach();
5041cb0ef41Sopenharmony_ci
5051cb0ef41Sopenharmony_ci  boolean isPointInRange(Node node, unsigned long offset);
5061cb0ef41Sopenharmony_ci  short comparePoint(Node node, unsigned long offset);
5071cb0ef41Sopenharmony_ci
5081cb0ef41Sopenharmony_ci  boolean intersectsNode(Node node);
5091cb0ef41Sopenharmony_ci
5101cb0ef41Sopenharmony_ci  stringifier;
5111cb0ef41Sopenharmony_ci};
5121cb0ef41Sopenharmony_ci
5131cb0ef41Sopenharmony_ci[Exposed=Window]
5141cb0ef41Sopenharmony_ciinterface NodeIterator {
5151cb0ef41Sopenharmony_ci  [SameObject] readonly attribute Node root;
5161cb0ef41Sopenharmony_ci  readonly attribute Node referenceNode;
5171cb0ef41Sopenharmony_ci  readonly attribute boolean pointerBeforeReferenceNode;
5181cb0ef41Sopenharmony_ci  readonly attribute unsigned long whatToShow;
5191cb0ef41Sopenharmony_ci  readonly attribute NodeFilter? filter;
5201cb0ef41Sopenharmony_ci
5211cb0ef41Sopenharmony_ci  Node? nextNode();
5221cb0ef41Sopenharmony_ci  Node? previousNode();
5231cb0ef41Sopenharmony_ci
5241cb0ef41Sopenharmony_ci  undefined detach();
5251cb0ef41Sopenharmony_ci};
5261cb0ef41Sopenharmony_ci
5271cb0ef41Sopenharmony_ci[Exposed=Window]
5281cb0ef41Sopenharmony_ciinterface TreeWalker {
5291cb0ef41Sopenharmony_ci  [SameObject] readonly attribute Node root;
5301cb0ef41Sopenharmony_ci  readonly attribute unsigned long whatToShow;
5311cb0ef41Sopenharmony_ci  readonly attribute NodeFilter? filter;
5321cb0ef41Sopenharmony_ci           attribute Node currentNode;
5331cb0ef41Sopenharmony_ci
5341cb0ef41Sopenharmony_ci  Node? parentNode();
5351cb0ef41Sopenharmony_ci  Node? firstChild();
5361cb0ef41Sopenharmony_ci  Node? lastChild();
5371cb0ef41Sopenharmony_ci  Node? previousSibling();
5381cb0ef41Sopenharmony_ci  Node? nextSibling();
5391cb0ef41Sopenharmony_ci  Node? previousNode();
5401cb0ef41Sopenharmony_ci  Node? nextNode();
5411cb0ef41Sopenharmony_ci};
5421cb0ef41Sopenharmony_ci[Exposed=Window]
5431cb0ef41Sopenharmony_cicallback interface NodeFilter {
5441cb0ef41Sopenharmony_ci  // Constants for acceptNode()
5451cb0ef41Sopenharmony_ci  const unsigned short FILTER_ACCEPT = 1;
5461cb0ef41Sopenharmony_ci  const unsigned short FILTER_REJECT = 2;
5471cb0ef41Sopenharmony_ci  const unsigned short FILTER_SKIP = 3;
5481cb0ef41Sopenharmony_ci
5491cb0ef41Sopenharmony_ci  // Constants for whatToShow
5501cb0ef41Sopenharmony_ci  const unsigned long SHOW_ALL = 0xFFFFFFFF;
5511cb0ef41Sopenharmony_ci  const unsigned long SHOW_ELEMENT = 0x1;
5521cb0ef41Sopenharmony_ci  const unsigned long SHOW_ATTRIBUTE = 0x2;
5531cb0ef41Sopenharmony_ci  const unsigned long SHOW_TEXT = 0x4;
5541cb0ef41Sopenharmony_ci  const unsigned long SHOW_CDATA_SECTION = 0x8;
5551cb0ef41Sopenharmony_ci  const unsigned long SHOW_ENTITY_REFERENCE = 0x10; // legacy
5561cb0ef41Sopenharmony_ci  const unsigned long SHOW_ENTITY = 0x20; // legacy
5571cb0ef41Sopenharmony_ci  const unsigned long SHOW_PROCESSING_INSTRUCTION = 0x40;
5581cb0ef41Sopenharmony_ci  const unsigned long SHOW_COMMENT = 0x80;
5591cb0ef41Sopenharmony_ci  const unsigned long SHOW_DOCUMENT = 0x100;
5601cb0ef41Sopenharmony_ci  const unsigned long SHOW_DOCUMENT_TYPE = 0x200;
5611cb0ef41Sopenharmony_ci  const unsigned long SHOW_DOCUMENT_FRAGMENT = 0x400;
5621cb0ef41Sopenharmony_ci  const unsigned long SHOW_NOTATION = 0x800; // legacy
5631cb0ef41Sopenharmony_ci
5641cb0ef41Sopenharmony_ci  unsigned short acceptNode(Node node);
5651cb0ef41Sopenharmony_ci};
5661cb0ef41Sopenharmony_ci
5671cb0ef41Sopenharmony_ci[Exposed=Window]
5681cb0ef41Sopenharmony_ciinterface DOMTokenList {
5691cb0ef41Sopenharmony_ci  readonly attribute unsigned long length;
5701cb0ef41Sopenharmony_ci  getter DOMString? item(unsigned long index);
5711cb0ef41Sopenharmony_ci  boolean contains(DOMString token);
5721cb0ef41Sopenharmony_ci  [CEReactions] undefined add(DOMString... tokens);
5731cb0ef41Sopenharmony_ci  [CEReactions] undefined remove(DOMString... tokens);
5741cb0ef41Sopenharmony_ci  [CEReactions] boolean toggle(DOMString token, optional boolean force);
5751cb0ef41Sopenharmony_ci  [CEReactions] boolean replace(DOMString token, DOMString newToken);
5761cb0ef41Sopenharmony_ci  boolean supports(DOMString token);
5771cb0ef41Sopenharmony_ci  [CEReactions] stringifier attribute DOMString value;
5781cb0ef41Sopenharmony_ci  iterable<DOMString>;
5791cb0ef41Sopenharmony_ci};
5801cb0ef41Sopenharmony_ci
5811cb0ef41Sopenharmony_ci[Exposed=Window]
5821cb0ef41Sopenharmony_ciinterface XPathResult {
5831cb0ef41Sopenharmony_ci  const unsigned short ANY_TYPE = 0;
5841cb0ef41Sopenharmony_ci  const unsigned short NUMBER_TYPE = 1;
5851cb0ef41Sopenharmony_ci  const unsigned short STRING_TYPE = 2;
5861cb0ef41Sopenharmony_ci  const unsigned short BOOLEAN_TYPE = 3;
5871cb0ef41Sopenharmony_ci  const unsigned short UNORDERED_NODE_ITERATOR_TYPE = 4;
5881cb0ef41Sopenharmony_ci  const unsigned short ORDERED_NODE_ITERATOR_TYPE = 5;
5891cb0ef41Sopenharmony_ci  const unsigned short UNORDERED_NODE_SNAPSHOT_TYPE = 6;
5901cb0ef41Sopenharmony_ci  const unsigned short ORDERED_NODE_SNAPSHOT_TYPE = 7;
5911cb0ef41Sopenharmony_ci  const unsigned short ANY_UNORDERED_NODE_TYPE = 8;
5921cb0ef41Sopenharmony_ci  const unsigned short FIRST_ORDERED_NODE_TYPE = 9;
5931cb0ef41Sopenharmony_ci
5941cb0ef41Sopenharmony_ci  readonly attribute unsigned short resultType;
5951cb0ef41Sopenharmony_ci  readonly attribute unrestricted double numberValue;
5961cb0ef41Sopenharmony_ci  readonly attribute DOMString stringValue;
5971cb0ef41Sopenharmony_ci  readonly attribute boolean booleanValue;
5981cb0ef41Sopenharmony_ci  readonly attribute Node? singleNodeValue;
5991cb0ef41Sopenharmony_ci  readonly attribute boolean invalidIteratorState;
6001cb0ef41Sopenharmony_ci  readonly attribute unsigned long snapshotLength;
6011cb0ef41Sopenharmony_ci
6021cb0ef41Sopenharmony_ci  Node? iterateNext();
6031cb0ef41Sopenharmony_ci  Node? snapshotItem(unsigned long index);
6041cb0ef41Sopenharmony_ci};
6051cb0ef41Sopenharmony_ci
6061cb0ef41Sopenharmony_ci[Exposed=Window]
6071cb0ef41Sopenharmony_ciinterface XPathExpression {
6081cb0ef41Sopenharmony_ci  // XPathResult.ANY_TYPE = 0
6091cb0ef41Sopenharmony_ci  XPathResult evaluate(Node contextNode, optional unsigned short type = 0, optional XPathResult? result = null);
6101cb0ef41Sopenharmony_ci};
6111cb0ef41Sopenharmony_ci
6121cb0ef41Sopenharmony_cicallback interface XPathNSResolver {
6131cb0ef41Sopenharmony_ci  DOMString? lookupNamespaceURI(DOMString? prefix);
6141cb0ef41Sopenharmony_ci};
6151cb0ef41Sopenharmony_ci
6161cb0ef41Sopenharmony_ciinterface mixin XPathEvaluatorBase {
6171cb0ef41Sopenharmony_ci  [NewObject] XPathExpression createExpression(DOMString expression, optional XPathNSResolver? resolver = null);
6181cb0ef41Sopenharmony_ci  XPathNSResolver createNSResolver(Node nodeResolver);
6191cb0ef41Sopenharmony_ci  // XPathResult.ANY_TYPE = 0
6201cb0ef41Sopenharmony_ci  XPathResult evaluate(DOMString expression, Node contextNode, optional XPathNSResolver? resolver = null, optional unsigned short type = 0, optional XPathResult? result = null);
6211cb0ef41Sopenharmony_ci};
6221cb0ef41Sopenharmony_ciDocument includes XPathEvaluatorBase;
6231cb0ef41Sopenharmony_ci
6241cb0ef41Sopenharmony_ci[Exposed=Window]
6251cb0ef41Sopenharmony_ciinterface XPathEvaluator {
6261cb0ef41Sopenharmony_ci  constructor();
6271cb0ef41Sopenharmony_ci};
6281cb0ef41Sopenharmony_ci
6291cb0ef41Sopenharmony_ciXPathEvaluator includes XPathEvaluatorBase;
6301cb0ef41Sopenharmony_ci
6311cb0ef41Sopenharmony_ci[Exposed=Window]
6321cb0ef41Sopenharmony_ciinterface XSLTProcessor {
6331cb0ef41Sopenharmony_ci  constructor();
6341cb0ef41Sopenharmony_ci  undefined importStylesheet(Node style);
6351cb0ef41Sopenharmony_ci  [CEReactions] DocumentFragment transformToFragment(Node source, Document output);
6361cb0ef41Sopenharmony_ci  [CEReactions] Document transformToDocument(Node source);
6371cb0ef41Sopenharmony_ci  undefined setParameter([LegacyNullToEmptyString] DOMString namespaceURI, DOMString localName, any value);
6381cb0ef41Sopenharmony_ci  any getParameter([LegacyNullToEmptyString] DOMString namespaceURI, DOMString localName);
6391cb0ef41Sopenharmony_ci  undefined removeParameter([LegacyNullToEmptyString] DOMString namespaceURI, DOMString localName);
6401cb0ef41Sopenharmony_ci  undefined clearParameters();
6411cb0ef41Sopenharmony_ci  undefined reset();
6421cb0ef41Sopenharmony_ci};
643