A string reflecting the aria-atomic attribute, which indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
A string reflecting the aria-atomic attribute, which indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.
A string reflecting the aria-autocomplete attribute, which indicates whether inputting text could trigger display of one or more predictions of the user's intended value for a combobox, searchbox, or textbox and specifies how predictions would be presented if they were made.
A string reflecting the aria-autocomplete attribute, which indicates whether inputting text could trigger display of one or more predictions of the user's intended value for a combobox, searchbox, or textbox and specifies how predictions would be presented if they were made.
A string reflecting the aria-busy attribute, which indicates whether an element is being modified, as assistive technologies may want to wait until the modifications are complete before exposing them to the user.
A string reflecting the aria-busy attribute, which indicates whether an element is being modified, as assistive technologies may want to wait until the modifications are complete before exposing them to the user.
A string reflecting the aria-checked attribute, which indicates the current "checked" state of checkboxes, radio buttons, and other widgets that have a checked state.
A string reflecting the aria-checked attribute, which indicates the current "checked" state of checkboxes, radio buttons, and other widgets that have a checked state.
A string reflecting the aria-colcount attribute, which defines the number of columns in a table, grid, or treegrid.
A string reflecting the aria-colcount attribute, which defines the number of columns in a table, grid, or treegrid.
A string reflecting the aria-colindex attribute, which defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
A string reflecting the aria-colindex attribute, which defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
A string reflecting the aria-colspan attribute, which defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
A string reflecting the aria-colspan attribute, which defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
A string reflecting the aria-current attribute, which indicates the element that represents the current item within a container or set of related elements.
A string reflecting the aria-current attribute, which indicates the element that represents the current item within a container or set of related elements.
A string reflecting the aria-description attribute, which defines a string value that describes or annotates the current element.
A string reflecting the aria-description attribute, which defines a string value that describes or annotates the current element.
A string reflecting the aria-disabled attribute, which indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
A string reflecting the aria-disabled attribute, which indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
A string reflecting the aria-expanded attribute, which indicates whether a grouping element owned or controlled by this element is expanded or collapsed.
A string reflecting the aria-expanded attribute, which indicates whether a grouping element owned or controlled by this element is expanded or collapsed.
A string reflecting the aria-haspopup attribute, which indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
A string reflecting the aria-haspopup attribute, which indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
A string reflecting the aria-hidden attribute, which indicates whether the element is exposed to an accessibility API.
A string reflecting the aria-hidden attribute, which indicates whether the element is exposed to an accessibility API.
A string reflecting the aria-keyshortcuts attribute, which indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
A string reflecting the aria-keyshortcuts attribute, which indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
A string reflecting the aria-label attribute, which defines a string value that labels the current element.
A string reflecting the aria-label attribute, which defines a string value that labels the current element.
A string reflecting the aria-level attribute, which defines the hierarchical level of an element within a structure.
A string reflecting the aria-level attribute, which defines the hierarchical level of an element within a structure.
A string reflecting the aria-live attribute, which indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.
A string reflecting the aria-live attribute, which indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.
A string reflecting the aria-modal attribute, which indicates whether an element is modal when displayed.
A string reflecting the aria-modal attribute, which indicates whether an element is modal when displayed.
A string reflecting the aria-multiline attribute, which indicates whether a text box accepts multiple lines of input or only a single line.
A string reflecting the aria-multiline attribute, which indicates whether a text box accepts multiple lines of input or only a single line.
A string reflecting the aria-multiselectable attribute, which indicates that the user may select more than one item from the current selectable descendants.
A string reflecting the aria-multiselectable attribute, which indicates that the user may select more than one item from the current selectable descendants.
A string reflecting the aria-orientation attribute, which indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
A string reflecting the aria-orientation attribute, which indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.
A string reflecting the aria-placeholder attribute, which defines a short hint intended to aid the user with data entry when the control has no value.
A string reflecting the aria-placeholder attribute, which defines a short hint intended to aid the user with data entry when the control has no value.
A string reflecting the aria-posinset attribute, which defines an element's number or position in the current set of listitems or treeitems.
A string reflecting the aria-posinset attribute, which defines an element's number or position in the current set of listitems or treeitems.
A string reflecting the aria-pressed attribute, which indicates the current "pressed" state of toggle buttons.
A string reflecting the aria-pressed attribute, which indicates the current "pressed" state of toggle buttons.
A string reflecting the aria-readonly attribute, which indicates that the element is not editable, but is otherwise operable.
A string reflecting the aria-readonly attribute, which indicates that the element is not editable, but is otherwise operable.
A string reflecting the aria-required attribute, which indicates that user input is required on the element before a form may be submitted.
A string reflecting the aria-required attribute, which indicates that user input is required on the element before a form may be submitted.
A string reflecting the aria-roledescription attribute, which defines a human-readable, author-localized description for the role of an element.
A string reflecting the aria-roledescription attribute, which defines a human-readable, author-localized description for the role of an element.
A string reflecting the aria-rowcount attribute, which defines the total number of rows in a table, grid, or treegrid.
A string reflecting the aria-rowcount attribute, which defines the total number of rows in a table, grid, or treegrid.
A string reflecting the aria-rowindex attribute, which defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
A string reflecting the aria-rowindex attribute, which defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
A string reflecting the aria-rowspan attribute, which defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
A string reflecting the aria-rowspan attribute, which defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.
A string reflecting the aria-selected attribute, which indicates the current "selected" state of elements that have a selected state.
A string reflecting the aria-selected attribute, which indicates the current "selected" state of elements that have a selected state.
A string reflecting the aria-setsize attribute, which defines the number of items in the current set of listitems or treeitems.
A string reflecting the aria-setsize attribute, which defines the number of items in the current set of listitems or treeitems.
A string reflecting the aria-sort attribute, which indicates if items in a table or grid are sorted in ascending or descending order.
A string reflecting the aria-sort attribute, which indicates if items in a table or grid are sorted in ascending or descending order.
A string reflecting the aria-valueMax attribute, which defines the maximum allowed value for a range widget.
A string reflecting the aria-valueMax attribute, which defines the maximum allowed value for a range widget.
A string reflecting the aria-valueMin attribute, which defines the minimum allowed value for a range widget.
A string reflecting the aria-valueMin attribute, which defines the minimum allowed value for a range widget.
A string reflecting the aria-valueNow attribute, which defines the current value for a range widget.
A string reflecting the aria-valueNow attribute, which defines the current value for a range widget.
A string reflecting the aria-valuetext attribute, which defines the human-readable text alternative of aria-valuenow for a range widget.
A string reflecting the aria-valuetext attribute, which defines the human-readable text alternative of aria-valuenow for a range widget.
Returns a HTMLSlotElement representing the
Returns a NamedNodeMap object containing the assigned attributes of the corresponding HTML element.
Returns a string representing the base URL of the document containing the Node.
Returns the number of child elements of this element.
Returns a live NodeList containing all the children of this node (including elements, text and comments). NodeList being live means that if the children of the Node change, the NodeList object is automatically updated.
Returns the child elements of this element.
Returns a DOMTokenList containing the list of class attributes.
A string representing the class of the element.
A string representing the class of the element.
Returns a number representing the inner height of the element.
Returns a number representing the width of the left border of the element.
Returns a number representing the width of the top border of the element.
Returns a number representing the inner width of the element.
Returns a Node representing the first direct child node of the node, or null if the node has no child.
Returns the first child element of this element.
A string representing the id of the element.
A string representing the markup of the element's content.
A string representing the markup of the element's content.
A boolean indicating whether or not the Node is connected (directly or indirectly) to the context object, e.g. the Document object in the case of the normal DOM, or the ShadowRoot in the case of a shadow DOM.
Returns a Node representing the last direct child node of the node, or null if the node has no child.
Returns the last child element of this element.
A string representing the local part of the qualified name of the element.
The namespace URI of the element, or null if it is no namespace.
An Element, the element immediately following the given one in the tree, or null if there's no sibling node.
Returns a Node representing the next node in the tree, or null if there isn't such node.
Returns a string containing the name of the Node. The structure of the name will differ with the node type. E.g. An HTMLElement will contain the name of the corresponding tag, like 'audio' for an HTMLAudioElement, a Text node will have the '#text' string, or a Document node will have the '#document' string.
Returns an unsigned short representing the type of the node. Possible values are:
| Name | Value | |---------------------------------------- | ELEMENT_NODE | 1 | | ATTRIBUTE_NODE | 2 | | TEXT_NODE | 3 | | CDATA_SECTION_NODE | 4 | | PROCESSING_INSTRUCTION_NODE | 7 | | COMMENT_NODE | 8 | | DOCUMENT_NODE | 9 | | DOCUMENT_TYPE_NODE | 10 | | DOCUMENT_FRAGMENT_NODE | 11 |
Returns the value of the current node.
Sets the value of the current node.
A string representing the markup of the element including its content. When used as a setter, replaces the element with nodes parsed from the given string.
A string representing the markup of the element including its content. When used as a setter, replaces the element with nodes parsed from the given string.
Returns the Document that this node belongs to. If the node is itself a document, returns null.
Returns an Element that is the parent of this node. If the node has no parent, or if that parent is not an Element, this property returns null.
Returns a Node that is the parent of this node. If there is no such node, like if this node is the top of the tree or if doesn't participate in a tree, this property returns null.
Represents the part identifier(s) of the element (i.e. set using the part attribute), returned as a DOMTokenList.
Represents the part identifier(s) of the element (i.e. set using the part attribute), returned as a DOMTokenList.
A string representing the namespace prefix of the element, or null if no prefix is specified. There is no real namespace parsing here, so this is always null.
An Element, the element immediately preceding the given one in the tree, or null if there is no sibling element.
Returns a Node representing the previous node in the tree, or null if there isn't such node.
Returns a number representing the scroll view height of an element.
A number representing the left scroll offset of the element.
A number representing the left scroll offset of the element.
A number representing number of pixels the top of the element is scrolled vertically.
A number representing number of pixels the top of the element is scrolled vertically.
Returns a number representing the scroll view width of the element.
Returns the open shadow root that is hosted by the element, or null if no open shadow root is present.
Returns the name of the shadow DOM slot the element is inserted in.
Returns the name of the shadow DOM slot the element is inserted in.
Returns a string with the name of the tag for the given element.
Returns the textual content of an element and all its descendants.
Sets the textual content of an element and all its descendants.
Registers an event handler of a specific event type on the EventTarget.
Inserts a set of Node objects or strings in the children list of the Element's parent, just after the Element. Does nothing when the element has no parent.
A shortcut method to create and run an animation on an element. Returns the created Animation object instance.
Inserts a set of Node objects or strings after the last child of the element.
Adds the specified childNode argument as the last child to the current node. If the argument referenced an existing node on the DOM tree, the node will be detached from its current position and attached at the new position.
Attaches a shadow DOM tree to the specified element and returns a reference to its ShadowRoot. Throws when the element already hosts one.
Inserts a set of Node objects or strings in the children list of the Element's parent, just before the Element. Does nothing when the element has no parent.
Returns whether an element is expected to be visible or not. Settable directly (boundingClientRect / isVisible / etc.) rather than really computed - there is no layout engine here.
Clone a Node, and optionally, all of its contents. By default, it clones the content of the node.
Returns the Element which is the closest ancestor of the current element (or the current element itself) which matches the selectors given in parameter.
A CSS selector
Compares the position of the current node against another node in any other document.
Returns a read-only view of the element's own inline style declarations (there is no CSS cascade here, so this is not a real computed style).
Returns true or false value indicating whether or not a node is a descendant of the calling node.
Returns an array of Animation objects currently active on the element. Settable directly (animations) - there is no animation engine here.
Retrieves the value of the named attribute from the current node and returns it as a string.
Returns an array of attribute names from the current element.
Retrieves the node representation of the named attribute from the current node and returns it as an Attr.
Retrieves the node representation of the attribute with the specified name and namespace, from the current node and returns it as an Attr. There is no real namespace parsing here, so this ignores the namespace and behaves exactly like getAttributeNode.
Ignored
Retrieves the value of the attribute with the specified namespace and name from the current node and returns it as a string. There is no real namespace parsing here, so this ignores the namespace and behaves exactly like getAttribute.
Ignored
Returns the size of an element and its position relative to the viewport. Settable directly (boundingClientRect) rather than really computed - there is no layout engine here.
Returns a collection of rectangles that indicate the bounding rectangles for each line of text in a client. Settable directly (clientRects) rather than really computed - there is no layout engine here.
Returns a live HTMLCollection that contains all descendants of the current element that possess the list of classes given in the parameter.
One or more space separated classes
Returns a live HTMLCollection containing all descendant elements, of a particular tag name, from the current element.
A tag name, or * for every element
Returns a live HTMLCollection containing all descendant elements, of a particular tag name, from the current element. There is no real namespace parsing here, so this ignores the namespace and behaves exactly like getElementsByTagName.
Ignored
Returns the context object's root which optionally includes the shadow root if it is available.
Returns a boolean value indicating if the element has the specified attribute or not.
Returns a boolean value indicating if the element has the specified attribute, in the specified namespace, or not. There is no real namespace parsing here, so this ignores the namespace and behaves exactly like hasAttribute.
Ignored
Returns a boolean value indicating if the element has one or more HTML attributes present.
Returns a boolean value indicating whether the element has any child nodes.
Indicates whether the element on which it is invoked has pointer capture for the pointer identified by the given pointer ID.
Inserts a given element at a given position relative to the element it is invoked upon.
beforebegin, afterbegin, beforeend or afterend
The element to insert
The inserted element, or null when the position needs a parent this element does not have
Inserts a given text at a given position relative to the element it is invoked upon.
beforebegin, afterbegin, beforeend or afterend
The text to insert
Inserts a Node before the reference node as a child of a specified parent node.
Accepts a namespace URI as an argument and returns a boolean value with a value of true if the namespace is the default namespace on the given node or false if not.
Returns a boolean value which indicates whether two nodes are of the same type and all their defining data points match.
Returns a boolean value indicating whether the two nodes are the same (that is, they reference the same object).
Accepts a prefix and returns the namespace URI associated with it on the given node if found (and null if not). Supplying null for the prefix will return the default namespace.
Returns a string containing the prefix for a given namespace URI, if present, and null if not. When multiple prefixes are possible, the result is implementation-dependent.
Returns a boolean value indicating whether or not the element would be selected by the specified selector string.
A CSS selector
Clean up all the text nodes under this element (merge adjacent, remove empty).
Inserts a set of Node objects or strings before the first child of the element.
Returns the first Node which matches the specified selector string relative to the element.
A CSS selector
Returns a NodeList of nodes which match the specified selector string relative to the element.
A CSS selector
Releases (stops) pointer capture that was previously set for a specific pointer event.
Removes the element from the children list of its parent. Does nothing when it has no parent.
Removes the named attribute from the current node.
Removes the node representation of the named attribute from the current node, and returns it.
When the element has no attribute matching attr.name
Removes the attribute with the specified name and namespace, from the current node. There is no real namespace parsing here, so this ignores the namespace and behaves exactly like removeAttribute.
Ignored
Removes a child node from the current element, which must be a child of the current node.
Removes an event listener from the EventTarget.
Optionaloptions: boolean | listenerOptionsReplaces one child Node of the current one with the second one given in parameter.
Replaces the existing children of a Node with a specified new set of children.
Replaces the element in the children list of its parent with a set of Node objects or strings. Does nothing when it has no parent.
Asynchronously asks the browser to make the element fullscreen. There is no real fullscreen here, so this just resolves, like a browser granting the request would.
Allows to asynchronously ask for the pointer to be locked on the given element. There is no real pointer lock here, so this just resolves, like a browser granting the request would.
Scrolls to a particular set of coordinates inside a given element. There is no real scrollable viewport here: this just sets scrollLeft / scrollTop.
Scrolls an element by the given amount, relative to the current position.
Scrolls an ancestor until the element gets into view. There is no real viewport here for that to mean anything, so this does nothing.
Scrolls to a particular set of coordinates inside a given element. An alias for scroll.
Sets the value of a named attribute of the current node.
Sets the node representation of the named attribute from the current node, returning any previous Attr with the same name (or null when there was none).
Sets the node representation of the attribute with the specified name and namespace, from the current node. There is no real namespace parsing here, so this behaves exactly like setAttributeNode (Attr.name already carries any prefix).
Sets the value of the attribute with the specified name and namespace, from the current node. There is no real namespace parsing here, so this ignores the namespace and behaves exactly like setAttribute.
Ignored
Designates a specific element as the capture target of future pointer events.
Toggles a boolean attribute, removing it if it is present and adding it if it is not present, on the specified element - unless force says which of those to do instead. Returns whether the attribute is present afterwards.
Simulate the behaviour of the Element Class when there is no DOM available.