JavaScript – DOM Element normalize() Method
The Element normalize() method removes empty text nodes, and joins adjacent text nodes.
The Element normalize() method removes empty text nodes, and joins adjacent text nodes.
The Element querySelector() method returns the first child element that matches the specified CSS selector or selectors of an element.
The Element querySelectorAll() method returns an element’s child elements, as a static NodeList object, that match specified CSS selectors.
The Element remove() method removes an element or node from the document.
The Element removeAttribute() method removes an attribute from an element.
The Element removeAttributeNode() method removes an attribute from an element.
The Element removeChild() method removes an element’s child.
The Element removeEventListener() method removes an event handler to an element.
The Element replaceChild() method replaces a child node with a new node.
The Element setAttribute() method sets a value for an attribute.
The Element setAttributeNode() method adds an attribute node to an element, replacing existing attribute nodes.
The NodeList entries() method returns an iterator with the key/value pairs from a NodeList, which is an array-like list of Node Objects.
The NodeList forEach() method executes a callback function for each node in a NodeList, which is an array-like list of Node Objects.
The NodeList item() method returns the node at a specified index in a NodeList, which is an array-like list of Node Objects.
The NodeList keys() method returns an iterator with the keys from a NodeList, which is an array-like list of Node Objects.
The NodeList values() method returns an iterator with the values from a NodeList, which is an array-like list of Node Objects.
The DOMTokenList add() method adds one or more tokens to a DOMTokenList, which is a set of space-separated tokens that can be accessed by index.
The DOMTokenList contains() method returns “true” if a DOMTokenList contains a class. If not, it will return “false”.
The DOMTokenList entries() method returns an iterator with the key/value pairs from a DOMTokenList.
The DOMTokenList forEach() method executes a callback function for each token in a DOMTokenList.