Flyweight DOM - v2.3.0
    Preparing search index...

    Element on MDN

    Hierarchy

    Index

    Constructors

    Properties

    attributes: Record<string, string> = {}
    childElementCount: number
    children: NodeList<Element>

    Element.children on MDN

    firstChild: null | ChildNode = null

    Node.firstChild on MDN

    firstElementChild: null | Element
    lastChild: null | ChildNode = null

    Node.lastChild on MDN

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

    Node.nextSibling on MDN

    nodeName: string

    Node.nodeName on MDN

    nodeType: number = ELEMENT_NODE

    Node.nodeType on MDN

    parentNode: null | ParentNode = null

    Node.parentNode on MDN

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

    Element.tagName on MDN

    Accessors

    • get className(): string

      Returns string

    • set className(value: string): void

      Parameters

      • value: string

      Returns void

    • get id(): string

      Returns string

      Element.id on MDN

    • set id(value: string): void

      Parameters

      • value: string

      Returns void

    • get nodeValue(): null | string

      Returns null | string

      Node.nodeValue on MDN

    • set nodeValue(value: null | string): void

      Parameters

      • value: null | string

      Returns void

    Methods

    • Parameters

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

      Returns this

      Element.after on MDN

    • Parameters

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

      Returns this

      Element.append on MDN

    • Type Parameters

      Parameters

      • node: T

      Returns T

      Node.appendChild on MDN

    • Parameters

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

      Returns this

      Element.before on MDN

    • Parameters

      • node: undefined | null | Node

      Returns boolean

      Node.contains on MDN

    • Parameters

      • name: string

      Returns null | string

    • Parameters

      • name: string

      Returns boolean

    • Returns boolean

    • Type Parameters

      Parameters

      • node: T
      • child: undefined | null | Node

      Returns T

    • Parameters

      • otherNode: undefined | null | Node

      Returns boolean

      Node.isEqualNode on MDN

    • Parameters

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

      Returns this

      Element.prepend on MDN

    • Returns this

      Element.remove on MDN

    • Type Parameters

      Parameters

      • child: T

      Returns T

      Node.removeChild on MDN

    • Type Parameters

      Parameters

      Returns T

    • Parameters

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

      Returns this

    • Parameters

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

      Returns this

    • Parameters

      • name: string
      • value: string

      Returns this

    • Parameters

      • name: string
      • Optionalforce: boolean

      Returns boolean