A thin layer on top of the regular DOM Document. The class includes some handy shorthands to make the code cleaner…

Constructors

Accessors

Methods

  • Add a new HTML Element to a parent, and return the new element.

    Parameters

    • parent: Element

      The parent HTML Element

    • element: string

      The new element's name

    • content: string = undefined

      The new element's (HTML) content

    Returns Element

    the new element

  • Just the mirroring of the official DOM call.

    Parameters

    • id: string

    Returns Element

  • Just the mirroring of the official DOM call.

    Parameters

    • tag: string

    Returns HTMLCollection

  • Just the mirroring of the official DOM call.

    Returns string