Home Reference Source Test Repository
public class | source

Element

Extends:

Node → Element

Static Member Summary

Static Public Members
public static get
public static get
public static get

Constructor Summary

Public Constructor
public

constructor(options: {})

Member Summary

Public Members
public get
public get
public get
public get
public get
public get
public get
public set
public get

tagName: *

Method Summary

Public Methods
public

[Builder.build](options: *): string

public
public

appendChild(elm: *)

public

getAttribute(name: *): *

public

getElementById(id: *): *

public

getElementsByClassName(className: *): *

public

getElementsByTagName(tagName: *): *

public

removeChild(elm: *): *

public

setAttribute(name: *, value: *): *

Inherited Summary

From class Node
public static get

info: *

public static get
public static get

tagInfo: *

public get

[info]: {}

public get
public get
public get
public get
public
public

[inspect.custom](depth: *, options: *): *

public
public

appendChild(node: *)

public

cloneNode(): *

public

removeChild(node: *): *

Static Public Members

public static get [elementGetters]: string[] source

public static get elementGetters: * source

public static get recursiveChildElements: * source

Public Constructors

public constructor(options: {}) source

Override:

Node#constructor

Params:

NameTypeAttributeDescription
options {}
  • optional
  • default: {}

Public Members

public get [Builder.selfClosing]: * source

public get [Node.info]: * source

public get [Node.tagInfo]: * source

public get attributes: * source

public get children: * source

public get classList: * source

public get className: * source

public set className: * source

public get tagName: * source

Override:

Node#tagName

Public Methods

public [Builder.build](options: *): string source

Override:

Node#[Builder.build]

Params:

NameTypeAttributeDescription
options *

Return:

string

public * [recursiveChildElements]() source

public appendChild(elm: *) source

Override:

Node#appendChild

Params:

NameTypeAttributeDescription
elm *

public getAttribute(name: *): * source

Params:

NameTypeAttributeDescription
name *

Return:

*

public getElementById(id: *): * source

Params:

NameTypeAttributeDescription
id *

Return:

*

public getElementsByClassName(className: *): * source

Params:

NameTypeAttributeDescription
className *

Return:

*

public getElementsByTagName(tagName: *): * source

Params:

NameTypeAttributeDescription
tagName *

Return:

*

public removeChild(elm: *): * source

Override:

Node#removeChild

Params:

NameTypeAttributeDescription
elm *

Return:

*

public setAttribute(name: *, value: *): * source

Params:

NameTypeAttributeDescription
name *
value *

Return:

*