Text ⇐ CharacterData

Kind: global class Extends: CharacterData Access: public See: https://developer.mozilla.org/en-US/docs/Web/API/Text

new Text(document, textContent)

Creates an instance of Text.

Param Type
document *
textContent *

text.nodeName : string

Kind: instance property of Text Default: "\"#text\"" Read only: true

text.nodeType : number

Kind: instance property of Text Default: Node.TEXT_NODE Read only: true

text.data : string

Kind: instance property of Text

text.textContent : string

Kind: instance property of Text

text.nodeValue : string

Kind: instance property of Text

text.length : number

Kind: instance property of Text Read only: true

text.contentEditable

Kind: instance property of Text Read only: true

text.isConnected : boolean

Kind: instance property of Text Read only: true

text.parentNode : Node

Kind: instance property of Text Read only: true

text.firstChild : Node

Kind: instance property of Text Read only: true

text.lastChild : Node

Kind: instance property of Text Read only: true

text.previousSibling : Node

Kind: instance property of Text Read only: true

text.nextSibling : Node

Kind: instance property of Text Read only: true

text.firstElementChild : Node

Kind: instance property of Text Read only: true

text.lastElementChild : Node

Kind: instance property of Text Read only: true

text.previousElementSibling : Node

Kind: instance property of Text Read only: true

text.nextElementSibling : Node

Kind: instance property of Text Read only: true

text.childNodes : NodeList

Kind: instance property of Text Read only: true

text.ownerDocument

Kind: instance property of Text Read only: true

text.attributes

Kind: instance property of Text Read only: true

text.offsetParent

Kind: instance property of Text Read only: true

text.substringData(offset, count) ⇒ string

Kind: instance method of Text

Param Type
offset *
count *

text.appendData(arg)

Kind: instance method of Text

Param Type
arg string

text.insertData(offset, arg)

Kind: instance method of Text

Param Type
offset number
arg string

text.deleteData(offset, count)

Kind: instance method of Text

Param Type
offset number
count number

text.replaceData(offset, count, arg)

Kind: instance method of Text

Param Type
offset number
count number
arg string

text.hasChildNodes() ⇒ boolean

Kind: instance method of Text

text.cloneNode(deep) ⇒ Node

Kind: instance method of Text

Param Type
deep boolean

text.appendChild(child) ⇒ Node

Kind: instance method of Text

Param Type
child Node

text.insertBefore(child, before) ⇒ Node

Kind: instance method of Text

Param Type
child Node
before Node

text.replaceChild(newChild, oldChild) ⇒ Node

Kind: instance method of Text

Param Type
newChild Node
oldChild Node

text.removeChild(child) ⇒ Node

Kind: instance method of Text

Param Type
child Node

text.remove()

Kind: instance method of Text

text.before(...nodes)

Kind: instance method of Text

Param Type
...nodes Array.<Node>

text.after(...nodes)

Kind: instance method of Text

Param Type
...nodes Array.<Node>

text.replaceWith(...nodes)

Kind: instance method of Text

Param Type
...nodes Array.<Node>

text.addEventListener(eventName, callback, [capture])

Kind: instance method of Text

Param Type Default
eventName *
callback *
[capture] boolean false

text.removeEventListener(eventName, callback, [capture])

Kind: instance method of Text

Param Type Default
eventName *
callback *
[capture] boolean false

text.dispatchEvent(event)

Kind: instance method of Text

Param Type
event *

results matching ""

    No results matching ""