See Element on MDN

Hierarchy

Implements

Constructors

  • Creates a new instance of Element.

    Parameters

    • tagName: string
    • Optional attributes: {
          [name: string]: string;
      }
      • [name: string]: string

    Returns Element

Properties

childElementCount: number
childNodes: readonly ChildNode[]

See Node.childNodes on MDN

children: readonly Node[]
classList: DOMTokenList

See Element.classList on MDN

className: string

See Element.className on MDN

firstChild: null | ChildNode

See Node.firstChild on MDN

firstElementChild: null | Element
id: string

See Element.id on MDN

lastChild: null | ChildNode

See Node.lastChild on MDN

lastElementChild: null | Element
nextElementSibling: null | Element
nextSibling: null | ChildNode

See Node.nextSibling on MDN

nodeName: string

See Node.nodeName on MDN

nodeType: number

See Node.nodeType on MDN

nodeValue: null | string

See Node.nodeValue on MDN

parentElement: null | Element

See Node.parentElement on MDN

parentNode: null | ParentNode

See Node.parentNode on MDN

previousElementSibling: null | Element
previousSibling: null | ChildNode
tagName: string

See Element.tagName on MDN

textContent: null | string

See Node.textContent on MDN

ATTRIBUTE_NODE: number
CDATA_SECTION_NODE: number
COMMENT_NODE: number
DOCUMENT_FRAGMENT_NODE: number
DOCUMENT_NODE: number
DOCUMENT_TYPE_NODE: number
ELEMENT_NODE: number
PROCESSING_INSTRUCTION_NODE: number
TEXT_NODE: number

Methods

  • Parameters

    • Rest ...nodes: (string | Node)[]

    Returns Element

  • Parameters

    • constructor: (new (...args: any[]) => any)
        • new (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    Returns void

Generated using TypeDoc