diff --git a/dom.bs b/dom.bs index 98d7a160..9cb5fac2 100644 --- a/dom.bs +++ b/dom.bs @@ -3383,7 +3383,7 @@ interface Node : EventTarget { readonly attribute unsigned short nodeType; readonly attribute DOMString nodeName; - readonly attribute DOMString baseURI; + readonly attribute USVString baseURI; readonly attribute boolean isConnected; readonly attribute Document? ownerDocument; @@ -4497,9 +4497,9 @@ object may be returned as returned by an earlier call. Exposed=Window] interface Document : Node { [SameObject] readonly attribute DOMImplementation implementation; - readonly attribute DOMString URL; - readonly attribute DOMString documentURI; - readonly attribute DOMString origin; + readonly attribute USVString URL; + readonly attribute USVString documentURI; + readonly attribute USVString origin; readonly attribute DOMString compatMode; readonly attribute DOMString characterSet; readonly attribute DOMString charset; // historical alias of .characterSet diff --git a/dom.html b/dom.html index c03adf4d..5bb9e565 100644 --- a/dom.html +++ b/dom.html @@ -8,7 +8,47 @@ - + + + +

DOM

-

Living Standard — Last Updated

+

Living Standard — Last Updated

@@ -489,28 +637,28 @@

[Constructor(DOMString type, optional EventInit eventInitDict), Exposed=(Window,Worker)] interface Event { - readonly attribute DOMString type; - readonly attribute EventTarget? target; - readonly attribute EventTarget? currentTarget; + readonly attribute DOMString type; + readonly attribute EventTarget? target; + readonly attribute EventTarget? currentTarget; sequence<EventTarget> composedPath(); const unsigned short NONE = 0; const unsigned short CAPTURING_PHASE = 1; const unsigned short AT_TARGET = 2; const unsigned short BUBBLING_PHASE = 3; - readonly attribute unsigned short eventPhase; + readonly attribute unsigned short eventPhase; void stopPropagation(); void stopImmediatePropagation(); - readonly attribute boolean bubbles; - readonly attribute boolean cancelable; + readonly attribute boolean bubbles; + readonly attribute boolean cancelable; void preventDefault(); - readonly attribute boolean defaultPrevented; - readonly attribute boolean composed; + readonly attribute boolean defaultPrevented; + readonly attribute boolean composed; - [Unforgeable] readonly attribute boolean isTrusted; - readonly attribute DOMTimeStamp timeStamp; + [Unforgeable] readonly attribute boolean isTrusted; + readonly attribute DOMTimeStamp timeStamp; void initEvent(DOMString type, boolean bubbles, boolean cancelable); // historical }; @@ -673,7 +821,7 @@

[Constructor(DOMString type, optional CustomEventInit eventInitDict), Exposed=(Window,Worker)] interface CustomEvent : Event { - readonly attribute any detail; + readonly attribute any detail; void initCustomEvent(DOMString type, boolean bubbles, boolean cancelable, any detail); }; @@ -728,8 +876,8 @@

3.6. Interface EventTarget

[Exposed=(Window,Worker)]
 interface EventTarget {
-  void addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options);
-  void removeEventListener(DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options);
+  void addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options);
+  void removeEventListener(DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options);
   boolean dispatchEvent(Event event);
 };
 
@@ -1526,10 +1674,10 @@ 

[NoInterfaceObject, Exposed=Window] interface ParentNode { - [SameObject] readonly attribute HTMLCollection children; - readonly attribute Element? firstElementChild; - readonly attribute Element? lastElementChild; - readonly attribute unsigned long childElementCount; + [SameObject] readonly attribute HTMLCollection children; + readonly attribute Element? firstElementChild; + readonly attribute Element? lastElementChild; + readonly attribute unsigned long childElementCount; [CEReactions, Unscopable] void prepend((Node or DOMString)... nodes); [CEReactions, Unscopable] void append((Node or DOMString)... nodes); @@ -1589,8 +1737,8 @@

[NoInterfaceObject, Exposed=Window] interface NonDocumentTypeChildNode { - readonly attribute Element? previousElementSibling; - readonly attribute Element? nextElementSibling; + readonly attribute Element? previousElementSibling; + readonly attribute Element? nextElementSibling; }; Element implements NonDocumentTypeChildNode; CharacterData implements NonDocumentTypeChildNode; @@ -1698,7 +1846,7 @@

[NoInterfaceObject, Exposed=Window] interface Slotable { - readonly attribute HTMLSlotElement? assignedSlot; + readonly attribute HTMLSlotElement? assignedSlot; }; Element implements Slotable; Text implements Slotable; @@ -1722,7 +1870,7 @@
[Exposed=Window] interface NodeList { getter Node? item(unsigned long index); - readonly attribute unsigned long length; + readonly attribute unsigned long length; iterable<Node>; };

@@ -1745,7 +1893,7 @@
4.2.10.2. Interface HTMLCollection
[Exposed=Window, LegacyUnenumerableNamedProperties]
 interface HTMLCollection {
-  readonly attribute unsigned long length;
+  readonly attribute unsigned long length;
   getter Element? item(unsigned long index);
   getter Element? namedItem(DOMString name);
 };
@@ -1842,7 +1990,7 @@ 

node’s descendants after node has been removed so they do not get lost when subtree is set to true on node’s parent.

4.3.1. Interface MutationObserver

-
[Constructor(MutationCallback callback)]
+
[Constructor(MutationCallback callback)]
 interface MutationObserver {
   void observe(Node target, MutationObserverInit options);
   void disconnect();
@@ -1989,15 +2137,15 @@ 

<

4.3.3. Interface MutationRecord

[Exposed=Window]
 interface MutationRecord {
-  readonly attribute DOMString type;
-  [SameObject] readonly attribute Node target;
-  [SameObject] readonly attribute NodeList addedNodes;
-  [SameObject] readonly attribute NodeList removedNodes;
-  readonly attribute Node? previousSibling;
-  readonly attribute Node? nextSibling;
-  readonly attribute DOMString? attributeName;
-  readonly attribute DOMString? attributeNamespace;
-  readonly attribute DOMString? oldValue;
+  readonly attribute DOMString type;
+  [SameObject] readonly attribute Node target;
+  [SameObject] readonly attribute NodeList addedNodes;
+  [SameObject] readonly attribute NodeList removedNodes;
+  readonly attribute Node? previousSibling;
+  readonly attribute Node? nextSibling;
+  readonly attribute DOMString? attributeName;
+  readonly attribute DOMString? attributeNamespace;
+  readonly attribute DOMString? oldValue;
 };
 
@@ -2059,25 +2207,25 @@

DOCUMENT_TYPE_NODE = 10; const unsigned short DOCUMENT_FRAGMENT_NODE = 11; const unsigned short NOTATION_NODE = 12; // historical - readonly attribute unsigned short nodeType; - readonly attribute DOMString nodeName; + readonly attribute unsigned short nodeType; + readonly attribute DOMString nodeName; - readonly attribute DOMString baseURI; + readonly attribute USVString baseURI; - readonly attribute boolean isConnected; - readonly attribute Document? ownerDocument; - readonly attribute Node rootNode; - readonly attribute Node? parentNode; - readonly attribute Element? parentElement; + readonly attribute boolean isConnected; + readonly attribute Document? ownerDocument; + readonly attribute Node rootNode; + readonly attribute Node? parentNode; + readonly attribute Element? parentElement; boolean hasChildNodes(); - [SameObject] readonly attribute NodeList childNodes; - readonly attribute Node? firstChild; - readonly attribute Node? lastChild; - readonly attribute Node? previousSibling; - readonly attribute Node? nextSibling; - - [CEReactions] attribute DOMString? nodeValue; - [CEReactions] attribute DOMString? textContent; + [SameObject] readonly attribute NodeList childNodes; + readonly attribute Node? firstChild; + readonly attribute Node? lastChild; + readonly attribute Node? previousSibling; + readonly attribute Node? nextSibling; + + [CEReactions] attribute DOMString? nodeValue; + [CEReactions] attribute DOMString? textContent; [CEReactions] void normalize(); [CEReactions, NewObject] Node cloneNode(optional boolean deep = false); @@ -2608,18 +2756,18 @@

[Constructor, Exposed=Window] interface Document : Node { - [SameObject] readonly attribute DOMImplementation implementation; - readonly attribute DOMString URL; - readonly attribute DOMString documentURI; - readonly attribute DOMString origin; - readonly attribute DOMString compatMode; - readonly attribute DOMString characterSet; - readonly attribute DOMString charset; // historical alias of .characterSet - readonly attribute DOMString inputEncoding; // historical alias of .characterSet - readonly attribute DOMString contentType; - - readonly attribute DocumentType? doctype; - readonly attribute Element? documentElement; + [SameObject] readonly attribute DOMImplementation implementation; + readonly attribute USVString URL; + readonly attribute USVString documentURI; + readonly attribute USVString origin; + readonly attribute DOMString compatMode; + readonly attribute DOMString characterSet; + readonly attribute DOMString charset; // historical alias of .characterSet + readonly attribute DOMString inputEncoding; // historical alias of .characterSet + readonly attribute DOMString contentType; + + readonly attribute DocumentType? doctype; + readonly attribute Element? documentElement; HTMLCollection getElementsByTagName(DOMString qualifiedName); HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName); HTMLCollection getElementsByClassName(DOMString classNames); @@ -2637,7 +2785,7 @@

Attr createAttribute(DOMString localName); [NewObject] Attr createAttributeNS(DOMString? namespace, DOMString qualifiedName); - [NewObject] Event createEvent(DOMString interface); + [NewObject] Event createEvent(DOMString interface); [NewObject] Range createRange(); @@ -3199,9 +3347,9 @@

4.6. Interface DocumentType

[Exposed=Window]
 interface DocumentType : Node {
-  readonly attribute DOMString name;
-  readonly attribute DOMString publicId;
-  readonly attribute DOMString systemId;
+  readonly attribute DOMString name;
+  readonly attribute DOMString publicId;
+  readonly attribute DOMString systemId;
 };
 

DocumentType nodes are simply known as doctypes.

@@ -3234,11 +3382,11 @@

4.8. Interface ShadowRoot

[Exposed=Window]
 interface ShadowRoot : DocumentFragment {
-  readonly attribute ShadowRootMode mode;
-  readonly attribute Element host;
+  readonly attribute ShadowRootMode mode;
+  readonly attribute Element host;
 };
 
-enum ShadowRootMode { "open", "closed" };
+enum ShadowRootMode { "open", "closed" };
 

ShadowRoot nodes are simply known as shadow roots.

Shadow roots have an associated mode ("open" @@ -3263,18 +3411,18 @@

4.9. Interface Element

[Exposed=Window]
 interface Element : Node {
-  readonly attribute DOMString? namespaceURI;
-  readonly attribute DOMString? prefix;
-  readonly attribute DOMString localName;
-  readonly attribute DOMString tagName;
+  readonly attribute DOMString? namespaceURI;
+  readonly attribute DOMString? prefix;
+  readonly attribute DOMString localName;
+  readonly attribute DOMString tagName;
 
-  [CEReactions] attribute DOMString id;
-  [CEReactions] attribute DOMString className;
-  [CEReactions, SameObject, PutForwards=value] readonly attribute DOMTokenList classList;
-  [CEReactions] attribute DOMString slot;
+  [CEReactions] attribute DOMString id;
+  [CEReactions] attribute DOMString className;
+  [CEReactions, SameObject, PutForwards=value] readonly attribute DOMTokenList classList;
+  [CEReactions] attribute DOMString slot;
 
   boolean hasAttributes();
-  [SameObject] readonly attribute NamedNodeMap attributes;
+  [SameObject] readonly attribute NamedNodeMap attributes;
   sequence<DOMString> getAttributeNames();
   DOMString? getAttribute(DOMString qualifiedName);
   DOMString? getAttributeNS(DOMString? namespace, DOMString localName);
@@ -3292,7 +3440,7 @@ 

Attr removeAttributeNode(Attr attr); ShadowRoot attachShadow(ShadowRootInit init); - readonly attribute ShadowRoot? shadowRoot; + readonly attribute ShadowRoot? shadowRoot; Element? closest(DOMString selectors); boolean matches(DOMString selectors); @@ -3816,7 +3964,7 @@

4.9.1. Interface NamedNodeMap

[Exposed=Window, LegacyUnenumerableNamedProperties]
 interface NamedNodeMap {
-  readonly attribute unsigned long length;
+  readonly attribute unsigned long length;
   getter Attr? item(unsigned long index);
   getter Attr? getNamedItem(DOMString qualifiedName);
   Attr? getNamedItemNS(DOMString? namespace, DOMString localName);
@@ -3883,18 +4031,18 @@ 

4.9.2. Interface Attr

[Exposed=Window]
 interface Attr {
-  readonly attribute DOMString? namespaceURI;
-  readonly attribute DOMString? prefix;
-  readonly attribute DOMString localName;
-  readonly attribute DOMString name;
-  readonly attribute DOMString nodeName; // historical alias of .name
-  [CEReactions] attribute DOMString value;
-  [CEReactions, TreatNullAs=EmptyString] attribute DOMString nodeValue; // historical alias of .value
-  [CEReactions, TreatNullAs=EmptyString] attribute DOMString textContent; // historical alias of .value
-
-  readonly attribute Element? ownerElement;
-
-  readonly attribute boolean specified; // useless; always returns true
+  readonly attribute DOMString? namespaceURI;
+  readonly attribute DOMString? prefix;
+  readonly attribute DOMString localName;
+  readonly attribute DOMString name;
+  readonly attribute DOMString nodeName; // historical alias of .name
+  [CEReactions] attribute DOMString value;
+  [CEReactions, TreatNullAs=EmptyString] attribute DOMString nodeValue; // historical alias of .value
+  [CEReactions, TreatNullAs=EmptyString] attribute DOMString textContent; // historical alias of .value
+
+  readonly attribute Element? ownerElement;
+
+  readonly attribute boolean specified; // useless; always returns true
 };

Attr objects are simply known as attributes. They are sometimes referred to as content attributes to avoid confusion with IDL attributes.

@@ -3928,8 +4076,8 @@

4.10. Interface CharacterData

[Exposed=Window]
 interface CharacterData : Node {
-  [TreatNullAs=EmptyString] attribute DOMString data;
-  readonly attribute unsigned long length;
+  [TreatNullAs=EmptyString] attribute DOMString data;
+  readonly attribute unsigned long length;
   DOMString substringData(unsigned long offset, unsigned long count);
   void appendData(DOMString data);
   void insertData(unsigned long offset, DOMString data);
@@ -3980,7 +4128,7 @@ 

Text : CharacterData { [NewObject] Text splitText(unsigned long offset); - readonly attribute DOMString wholeText; + readonly attribute DOMString wholeText; };

text = new Text([data = ""]) @@ -4029,7 +4177,7 @@

4.12. Interface ProcessingInstruction

[Exposed=Window]
 interface ProcessingInstruction : CharacterData {
-  readonly attribute DOMString target;
+  readonly attribute DOMString target;
 };

ProcessingInstruction nodes have an associated target.

The target attribute must return the target.

@@ -4087,12 +4235,12 @@

[Constructor, Exposed=Window] interface Range { - readonly attribute Node startContainer; - readonly attribute unsigned long startOffset; - readonly attribute Node endContainer; - readonly attribute unsigned long endOffset; - readonly attribute boolean collapsed; - readonly attribute Node commonAncestorContainer; + readonly attribute Node startContainer; + readonly attribute unsigned long startOffset; + readonly attribute Node endContainer; + readonly attribute unsigned long endOffset; + readonly attribute boolean collapsed; + readonly attribute Node commonAncestorContainer; void setStart(Node node, unsigned long offset); void setEnd(Node node, unsigned long offset); @@ -4648,11 +4796,11 @@

6.

6.1. Interface NodeIterator

[Exposed=Window]
 interface NodeIterator {
-  [SameObject] readonly attribute Node root;
-  readonly attribute Node referenceNode;
-  readonly attribute boolean pointerBeforeReferenceNode;
-  readonly attribute unsigned long whatToShow;
-  readonly attribute NodeFilter? filter;
+  [SameObject] readonly attribute Node root;
+  readonly attribute Node referenceNode;
+  readonly attribute boolean pointerBeforeReferenceNode;
+  readonly attribute unsigned long whatToShow;
+  readonly attribute NodeFilter? filter;
 
   Node? nextNode();
   Node? previousNode();
@@ -4725,10 +4873,10 @@ 

6.2. Interface TreeWalker

[Exposed=Window]
 interface TreeWalker {
-  [SameObject] readonly attribute Node root;
-  readonly attribute unsigned long whatToShow;
-  readonly attribute NodeFilter? filter;
-           attribute Node currentNode;
+  [SameObject] readonly attribute Node root;
+  readonly attribute unsigned long whatToShow;
+  readonly attribute NodeFilter? filter;
+           attribute Node currentNode;
 
   Node? parentNode();
   Node? firstChild();
@@ -4928,7 +5076,7 @@ 

7. Yes, the name DOMTokenList is an unfortunate legacy mishap.

7.1. Interface DOMTokenList

interface DOMTokenList {
-  readonly attribute unsigned long length;
+  readonly attribute unsigned long length;
   getter DOMString? item(unsigned long index);
   boolean contains(DOMString token);
   [CEReactions] void add(DOMString... tokens);
@@ -4936,7 +5084,7 @@ 

toggle(DOMString token, optional boolean force); [CEReactions] void replace(DOMString token, DOMString newToken); boolean supports(DOMString token); - [CEReactions] attribute DOMString value; + [CEReactions] attribute DOMString value; stringifier; iterable<DOMString>; }; @@ -5502,6 +5650,7 @@

cloneRange(), in §5.2
  • clone the contents of a range, in §5.2
  • cloning steps, in §4.4 +
  • closed, in §4.8
  • "closed", in §4.8
  • closest(selectors), in §4.9
  • collapse(), in §5.2 @@ -5956,6 +6105,7 @@

    oldValue, in §4.3.3
  • once, in §3.6
  • "open", in §4.8 +
  • open, in §4.8
  • ordered set parser, in §2.3
  • ordered set serializer, in §2.3
  • origin, in §4.5 @@ -6405,7 +6555,7 @@

    [DOM-Level-3-Core]
    Arnaud Le Hors; et al. Document Object Model (DOM) Level 3 Core Specification. 7 April 2004. REC. URL: http://www.w3.org/TR/DOM-Level-3-Core/
    [DOM-Parsing] -
    Travis Leithead. DOM Parsing and Serialization. 17 June 2014. CR. URL: https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html +
    Travis Leithead. DOM Parsing and Serialization. 17 May 2016. WD. URL: https://w3c.github.io/DOM-Parsing/
    [ELEMENTTRAVERSAL]
    Doug Schepers; Robin Berjon. Element Traversal Specification. 22 December 2008. REC. URL: http://www.w3.org/TR/ElementTraversal/
    [INDEXEDDB] @@ -6419,28 +6569,28 @@

    I
    [Constructor(DOMString type, optional EventInit eventInitDict),
      Exposed=(Window,Worker)]
     interface Event {
    -  readonly attribute DOMString type;
    -  readonly attribute EventTarget? target;
    -  readonly attribute EventTarget? currentTarget;
    +  readonly attribute DOMString type;
    +  readonly attribute EventTarget? target;
    +  readonly attribute EventTarget? currentTarget;
       sequence<EventTarget> composedPath();
     
       const unsigned short NONE = 0;
       const unsigned short CAPTURING_PHASE = 1;
       const unsigned short AT_TARGET = 2;
       const unsigned short BUBBLING_PHASE = 3;
    -  readonly attribute unsigned short eventPhase;
    +  readonly attribute unsigned short eventPhase;
     
       void stopPropagation();
       void stopImmediatePropagation();
     
    -  readonly attribute boolean bubbles;
    -  readonly attribute boolean cancelable;
    +  readonly attribute boolean bubbles;
    +  readonly attribute boolean cancelable;
       void preventDefault();
    -  readonly attribute boolean defaultPrevented;
    -  readonly attribute boolean composed;
    +  readonly attribute boolean defaultPrevented;
    +  readonly attribute boolean composed;
     
    -  [Unforgeable] readonly attribute boolean isTrusted;
    -  readonly attribute DOMTimeStamp timeStamp;
    +  [Unforgeable] readonly attribute boolean isTrusted;
    +  readonly attribute DOMTimeStamp timeStamp;
     
       void initEvent(DOMString type, boolean bubbles, boolean cancelable); // historical
     };
    @@ -6454,7 +6604,7 @@ 

    I [Constructor(DOMString type, optional CustomEventInit eventInitDict), Exposed=(Window,Worker)] interface CustomEvent : Event { - readonly attribute any detail; + readonly attribute any detail; void initCustomEvent(DOMString type, boolean bubbles, boolean cancelable, any detail); }; @@ -6465,8 +6615,8 @@

    I [Exposed=(Window,Worker)] interface EventTarget { - void addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options); - void removeEventListener(DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options); + void addEventListener(DOMString type, EventListener? callback, optional (AddEventListenerOptions or boolean) options); + void removeEventListener(DOMString type, EventListener? callback, optional (EventListenerOptions or boolean) options); boolean dispatchEvent(Event event); }; @@ -6501,10 +6651,10 @@

    I [NoInterfaceObject, Exposed=Window] interface ParentNode { - [SameObject] readonly attribute HTMLCollection children; - readonly attribute Element? firstElementChild; - readonly attribute Element? lastElementChild; - readonly attribute unsigned long childElementCount; + [SameObject] readonly attribute HTMLCollection children; + readonly attribute Element? firstElementChild; + readonly attribute Element? lastElementChild; + readonly attribute unsigned long childElementCount; [CEReactions, Unscopable] void prepend((Node or DOMString)... nodes); [CEReactions, Unscopable] void append((Node or DOMString)... nodes); @@ -6519,8 +6669,8 @@

    I [NoInterfaceObject, Exposed=Window] interface NonDocumentTypeChildNode { - readonly attribute Element? previousElementSibling; - readonly attribute Element? nextElementSibling; + readonly attribute Element? previousElementSibling; + readonly attribute Element? nextElementSibling; }; Element implements NonDocumentTypeChildNode; CharacterData implements NonDocumentTypeChildNode; @@ -6540,7 +6690,7 @@

    I [NoInterfaceObject, Exposed=Window] interface Slotable { - readonly attribute HTMLSlotElement? assignedSlot; + readonly attribute HTMLSlotElement? assignedSlot; }; Element implements Slotable; Text implements Slotable; @@ -6548,18 +6698,18 @@

    I [Exposed=Window] interface NodeList { getter Node? item(unsigned long index); - readonly attribute unsigned long length; + readonly attribute unsigned long length; iterable<Node>; }; [Exposed=Window, LegacyUnenumerableNamedProperties] interface HTMLCollection { - readonly attribute unsigned long length; + readonly attribute unsigned long length; getter Element? item(unsigned long index); getter Element? namedItem(DOMString name); }; -[Constructor(MutationCallback callback)] +[Constructor(MutationCallback callback)] interface MutationObserver { void observe(Node target, MutationObserverInit options); void disconnect(); @@ -6580,15 +6730,15 @@

    I [Exposed=Window] interface MutationRecord { - readonly attribute DOMString type; - [SameObject] readonly attribute Node target; - [SameObject] readonly attribute NodeList addedNodes; - [SameObject] readonly attribute NodeList removedNodes; - readonly attribute Node? previousSibling; - readonly attribute Node? nextSibling; - readonly attribute DOMString? attributeName; - readonly attribute DOMString? attributeNamespace; - readonly attribute DOMString? oldValue; + readonly attribute DOMString type; + [SameObject] readonly attribute Node target; + [SameObject] readonly attribute NodeList addedNodes; + [SameObject] readonly attribute NodeList removedNodes; + readonly attribute Node? previousSibling; + readonly attribute Node? nextSibling; + readonly attribute DOMString? attributeName; + readonly attribute DOMString? attributeNamespace; + readonly attribute DOMString? oldValue; }; [Exposed=Window] @@ -6605,25 +6755,25 @@

    I const unsigned short DOCUMENT_TYPE_NODE = 10; const unsigned short DOCUMENT_FRAGMENT_NODE = 11; const unsigned short NOTATION_NODE = 12; // historical - readonly attribute unsigned short nodeType; - readonly attribute DOMString nodeName; + readonly attribute unsigned short nodeType; + readonly attribute DOMString nodeName; - readonly attribute DOMString baseURI; + readonly attribute USVString baseURI; - readonly attribute boolean isConnected; - readonly attribute Document? ownerDocument; - readonly attribute Node rootNode; - readonly attribute Node? parentNode; - readonly attribute Element? parentElement; + readonly attribute boolean isConnected; + readonly attribute Document? ownerDocument; + readonly attribute Node rootNode; + readonly attribute Node? parentNode; + readonly attribute Element? parentElement; boolean hasChildNodes(); - [SameObject] readonly attribute NodeList childNodes; - readonly attribute Node? firstChild; - readonly attribute Node? lastChild; - readonly attribute Node? previousSibling; - readonly attribute Node? nextSibling; - - [CEReactions] attribute DOMString? nodeValue; - [CEReactions] attribute DOMString? textContent; + [SameObject] readonly attribute NodeList childNodes; + readonly attribute Node? firstChild; + readonly attribute Node? lastChild; + readonly attribute Node? previousSibling; + readonly attribute Node? nextSibling; + + [CEReactions] attribute DOMString? nodeValue; + [CEReactions] attribute DOMString? textContent; [CEReactions] void normalize(); [CEReactions, NewObject] Node cloneNode(optional boolean deep = false); @@ -6652,18 +6802,18 @@

    I [Constructor, Exposed=Window] interface Document : Node { - [SameObject] readonly attribute DOMImplementation implementation; - readonly attribute DOMString URL; - readonly attribute DOMString documentURI; - readonly attribute DOMString origin; - readonly attribute DOMString compatMode; - readonly attribute DOMString characterSet; - readonly attribute DOMString charset; // historical alias of .characterSet - readonly attribute DOMString inputEncoding; // historical alias of .characterSet - readonly attribute DOMString contentType; - - readonly attribute DocumentType? doctype; - readonly attribute Element? documentElement; + [SameObject] readonly attribute DOMImplementation implementation; + readonly attribute USVString URL; + readonly attribute USVString documentURI; + readonly attribute USVString origin; + readonly attribute DOMString compatMode; + readonly attribute DOMString characterSet; + readonly attribute DOMString charset; // historical alias of .characterSet + readonly attribute DOMString inputEncoding; // historical alias of .characterSet + readonly attribute DOMString contentType; + + readonly attribute DocumentType? doctype; + readonly attribute Element? documentElement; HTMLCollection getElementsByTagName(DOMString qualifiedName); HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName); HTMLCollection getElementsByClassName(DOMString classNames); @@ -6681,7 +6831,7 @@

    I [NewObject] Attr createAttribute(DOMString localName); [NewObject] Attr createAttributeNS(DOMString? namespace, DOMString qualifiedName); - [NewObject] Event createEvent(DOMString interface); + [NewObject] Event createEvent(DOMString interface); [NewObject] Range createRange(); @@ -6708,9 +6858,9 @@

    I [Exposed=Window] interface DocumentType : Node { - readonly attribute DOMString name; - readonly attribute DOMString publicId; - readonly attribute DOMString systemId; + readonly attribute DOMString name; + readonly attribute DOMString publicId; + readonly attribute DOMString systemId; }; [Constructor, @@ -6720,26 +6870,26 @@

    I [Exposed=Window] interface ShadowRoot : DocumentFragment { - readonly attribute ShadowRootMode mode; - readonly attribute Element host; + readonly attribute ShadowRootMode mode; + readonly attribute Element host; }; enum ShadowRootMode { "open", "closed" }; [Exposed=Window] interface Element : Node { - readonly attribute DOMString? namespaceURI; - readonly attribute DOMString? prefix; - readonly attribute DOMString localName; - readonly attribute DOMString tagName; + readonly attribute DOMString? namespaceURI; + readonly attribute DOMString? prefix; + readonly attribute DOMString localName; + readonly attribute DOMString tagName; - [CEReactions] attribute DOMString id; - [CEReactions] attribute DOMString className; - [CEReactions, SameObject, PutForwards=value] readonly attribute DOMTokenList classList; - [CEReactions] attribute DOMString slot; + [CEReactions] attribute DOMString id; + [CEReactions] attribute DOMString className; + [CEReactions, SameObject, PutForwards=value] readonly attribute DOMTokenList classList; + [CEReactions] attribute DOMString slot; boolean hasAttributes(); - [SameObject] readonly attribute NamedNodeMap attributes; + [SameObject] readonly attribute NamedNodeMap attributes; sequence<DOMString> getAttributeNames(); DOMString? getAttribute(DOMString qualifiedName); DOMString? getAttributeNS(DOMString? namespace, DOMString localName); @@ -6757,7 +6907,7 @@

    I [CEReactions] Attr removeAttributeNode(Attr attr); ShadowRoot attachShadow(ShadowRootInit init); - readonly attribute ShadowRoot? shadowRoot; + readonly attribute ShadowRoot? shadowRoot; Element? closest(DOMString selectors); boolean matches(DOMString selectors); @@ -6777,7 +6927,7 @@

    I [Exposed=Window, LegacyUnenumerableNamedProperties] interface NamedNodeMap { - readonly attribute unsigned long length; + readonly attribute unsigned long length; getter Attr? item(unsigned long index); getter Attr? getNamedItem(DOMString qualifiedName); Attr? getNamedItemNS(DOMString? namespace, DOMString localName); @@ -6789,23 +6939,23 @@

    I [Exposed=Window] interface Attr { - readonly attribute DOMString? namespaceURI; - readonly attribute DOMString? prefix; - readonly attribute DOMString localName; - readonly attribute DOMString name; - readonly attribute DOMString nodeName; // historical alias of .name - [CEReactions] attribute DOMString value; - [CEReactions, TreatNullAs=EmptyString] attribute DOMString nodeValue; // historical alias of .value - [CEReactions, TreatNullAs=EmptyString] attribute DOMString textContent; // historical alias of .value - - readonly attribute Element? ownerElement; - - readonly attribute boolean specified; // useless; always returns true + readonly attribute DOMString? namespaceURI; + readonly attribute DOMString? prefix; + readonly attribute DOMString localName; + readonly attribute DOMString name; + readonly attribute DOMString nodeName; // historical alias of .name + [CEReactions] attribute DOMString value; + [CEReactions, TreatNullAs=EmptyString] attribute DOMString nodeValue; // historical alias of .value + [CEReactions, TreatNullAs=EmptyString] attribute DOMString textContent; // historical alias of .value + + readonly attribute Element? ownerElement; + + readonly attribute boolean specified; // useless; always returns true }; [Exposed=Window] interface CharacterData : Node { - [TreatNullAs=EmptyString] attribute DOMString data; - readonly attribute unsigned long length; + [TreatNullAs=EmptyString] attribute DOMString data; + readonly attribute unsigned long length; DOMString substringData(unsigned long offset, unsigned long count); void appendData(DOMString data); void insertData(unsigned long offset, DOMString data); @@ -6817,11 +6967,11 @@

    I Exposed=Window] interface Text : CharacterData { [NewObject] Text splitText(unsigned long offset); - readonly attribute DOMString wholeText; + readonly attribute DOMString wholeText; }; [Exposed=Window] interface ProcessingInstruction : CharacterData { - readonly attribute DOMString target; + readonly attribute DOMString target; }; [Constructor(optional DOMString data = ""), Exposed=Window] @@ -6831,12 +6981,12 @@

    I [Constructor, Exposed=Window] interface Range { - readonly attribute Node startContainer; - readonly attribute unsigned long startOffset; - readonly attribute Node endContainer; - readonly attribute unsigned long endOffset; - readonly attribute boolean collapsed; - readonly attribute Node commonAncestorContainer; + readonly attribute Node startContainer; + readonly attribute unsigned long startOffset; + readonly attribute Node endContainer; + readonly attribute unsigned long endOffset; + readonly attribute boolean collapsed; + readonly attribute Node commonAncestorContainer; void setStart(Node node, unsigned long offset); void setEnd(Node node, unsigned long offset); @@ -6873,11 +7023,11 @@

    I [Exposed=Window] interface NodeIterator { - [SameObject] readonly attribute Node root; - readonly attribute Node referenceNode; - readonly attribute boolean pointerBeforeReferenceNode; - readonly attribute unsigned long whatToShow; - readonly attribute NodeFilter? filter; + [SameObject] readonly attribute Node root; + readonly attribute Node referenceNode; + readonly attribute boolean pointerBeforeReferenceNode; + readonly attribute unsigned long whatToShow; + readonly attribute NodeFilter? filter; Node? nextNode(); Node? previousNode(); @@ -6887,10 +7037,10 @@

    I [Exposed=Window] interface TreeWalker { - [SameObject] readonly attribute Node root; - readonly attribute unsigned long whatToShow; - readonly attribute NodeFilter? filter; - attribute Node currentNode; + [SameObject] readonly attribute Node root; + readonly attribute unsigned long whatToShow; + readonly attribute NodeFilter? filter; + attribute Node currentNode; Node? parentNode(); Node? firstChild(); @@ -6926,7 +7076,7 @@

    I }; interface DOMTokenList { - readonly attribute unsigned long length; + readonly attribute unsigned long length; getter DOMString? item(unsigned long index); boolean contains(DOMString token); [CEReactions] void add(DOMString... tokens); @@ -6934,7 +7084,7 @@

    I [CEReactions] boolean toggle(DOMString token, optional boolean force); [CEReactions] void replace(DOMString token, DOMString newToken); boolean supports(DOMString token); - [CEReactions] attribute DOMString value; + [CEReactions] attribute DOMString value; stringifier; iterable<DOMString>; };