interface Element {
    attributes: IterableIterator<string[]>;
    namespaceURI: string;
    removed: boolean;
    tagName: string;
    after(content, options?): Element;
    append(content, options?): Element;
    before(content, options?): Element;
    getAttribute(name): string;
    hasAttribute(name): boolean;
    onEndTag(handler): void;
    prepend(content, options?): Element;
    remove(): Element;
    removeAndKeepContent(): Element;
    removeAttribute(name): Element;
    replace(content, options?): Element;
    setAttribute(name, value): Element;
    setInnerContent(content, options?): Element;
}

Properties

attributes: IterableIterator<string[]>
namespaceURI: string
removed: boolean
tagName: string

Methods

  • Parameters

    • name: string

    Returns string

  • Parameters

    • name: string

    Returns boolean

  • Parameters

    • handler: ((tag) => void | Promise<void>)
        • (tag): void | Promise<void>
        • Parameters

          Returns void | Promise<void>

    Returns void

  • Returns Element

  • Parameters

    • name: string

    Returns Element

  • Parameters

    • name: string
    • value: string

    Returns Element