Node.firstChild

JavaScript’s Node.firstChild read-only property returns the Node’s first child or null if the Node has no children.

Element.hasAttributes()

JavaScript’s Element.hasAttributes() method returns a Boolean value indicating whether the Element has any attributes or not.

Element.hasAttribute()

JavaScript’s Element.hasAttribute() method returns a Boolean value indicating whether the Element has a specified attribute or not.

Element.removeAttribute()

JavaScript’s Element.removeAttribute() method removes an attribute from the Element.

Element.setAttribute()

JavaScript’s Element.setAttribute() method sets the value of an attribute of the Element.

Element.getAttribute()

JavaScript’s Element.getAttribute() method returns the value of an attribute of the Element or null if the attribute does not exist.

Element.closest()

JavaScript’s Element.closest() method matches the Element and its ancestors against a CSS selector and returns the first matching element or null.

Node.hasChildNodes()

JavaScript’s Node.hasChildNodes() method returns a Boolean value indicating whether the Node has child nodes or not.

Node.removeChild()

JavaScript’s Node.removeChild() method removes a child node from the Node.

Node.replaceChild()

JavaScript’s Node.replaceChild() method replaces a child node within the Node.