Creates a new instance of Element.
Optional
attributes: AttributesReadonly
childElement.childElementCount on MDN
Readonly
childrenElement.children on MDN
Readonly
firstNode.firstChild on MDN
Readonly
firstElement.firstElementChild on MDN
Readonly
lastNode.lastChild on MDN
Readonly
lastElement.lastElementChild on MDN
Readonly
nextElement.nextElementSibling on MDN
Readonly
nextNode.nextSibling on MDN
Readonly
nodeNode.nodeName on MDN
Readonly
nodeNode.nodeType on MDN
Readonly
parentNode.parentNode on MDN
Readonly
previousReadonly
previousNode.previousSibling on MDN
Readonly
tagElement.tagName on MDN
Static
Readonly
ATTRIBUTE_Static
Readonly
CDATA_Static
Readonly
COMMENT_Static
Readonly
DOCUMENT_Static
Readonly
DOCUMENT_Static
Readonly
DOCUMENT_Static
Readonly
ELEMENT_Static
Readonly
PROCESSING_Static
Readonly
TEXT_Map from an attribute name to an attribute value. If an attribute is absent then value is undefined
.
Node.childNodes on MDN
Element.classList on MDN
Element.className on MDN
Element.id on MDN
Node.nodeValue on MDN
Node.parentElement on MDN
Node.textContent on MDN
Node.textContent on MDN
Rest
...nodes: (string | Node)[]Element.after on MDN
Rest
...nodes: (string | Node)[]Element.append on MDN
Rest
...nodes: (string | Node)[]Element.before on MDN
Optional
deep: booleanNode.cloneNode on MDN
Node.contains on MDN
Element.getAttribute on MDN
Element.getAttributeNames on MDN
Element.hasAttribute on MDN
Node.hasChildNodes on MDN
Element.insertAdjacentText on MDN
Node.insertBefore on MDN
Node.isEqualNode on MDN
Rest
...nodes: (string | Node)[]Element.prepend on MDN
Element.remove on MDN
Element.removeAttribute on MDN
Node.replaceChild on MDN
Rest
...nodes: (string | Node)[]Element.replaceChildren on MDN
Rest
...nodes: (string | Node)[]Element.replaceWith on MDN
Element.setAttribute on MDN
Optional
force: booleanElement.toggleAttribute on MDN
See
Element on MDN