Node.cloneNode()

JavaScript’s Node.cloneNode() method returns a duplicate of the Node.

Element.remove()

JavaScript’s Element.remove() method removes the Element from the DOM (Document Object Model).

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.