Home Reference Source Repository
import Text from 'html-document/src/Text.js'
public class | source

Text

Extends:

Node → Text

See:

Constructor Summary

Public Constructor
public

constructor(textContent: string)

Member Summary

Public Members
public get
public set
public get
public set

textContent(textContent: string): *

public

value: *

Inherited Summary

From class Node
public get
public set

nodeValue(value: *): *

public get

Returns the Document that this node belongs to.

public get
public

addEventListener(eventType: string, listener: function, capturingPhase: boolean): *

public
public

getAttribute(attributeName: string): string

get attribute's value

public

hasAttribute(attributeName: string): boolean

checks if attribute exists for node

public

removeAttribute(attributeName: string)

remove attribute

public

removeEventListener(eventType: string, listener: function, capturingPhase: boolean): boolean

public

setAttribute(attributeName: string, attributeValue: string)

set attribute's value

Public Constructors

public constructor(textContent: string) source

Override:

Node#constructor

Params:

NameTypeAttributeDescription
textContent string

Public Members

public get nodeValue: * source

Override:

Node#nodeValue

public set nodeValue: * source

Override:

Node#nodeValue

public get textContent: string: * source

Override:

Node#textContent

Return:

string

public set textContent(textContent: string): * source

Override:

Node#textContent

public value: * source