Edit in GitHubLog an issue

window.CharacterData

See: https://developer.mozilla.org/en-US/docs/Web/API/CharacterData

data : string

textContent : string

nodeValue : string

length : number

Read only

contentEditable

Read only

isConnected : boolean

Read only

parentNode : Node

Read only

parentElement : Element

Read only

firstChild : Node

Read only

lastChild : Node

Read only

previousSibling : Node

Read only

nextSibling : Node

Read only

firstElementChild : Node

Read only

lastElementChild : Node

Read only

previousElementSibling : Node

Read only

nextElementSibling : Node

Read only

childNodes : NodeList

Read only

children : HTMLCollection

Read only

ownerDocument

Read only

attributes

Read only

substringData(offset, count)

Returns: string

ParamType
offset
*
count
*

appendData(arg)

ParamType
arg
string

insertData(offset, arg)

ParamType
offset
number
arg
string

deleteData(offset, count)

ParamType
offset
number
count
number

replaceData(offset, count, arg)

ParamType
offset
number
count
number
arg
string

hasChildNodes()

Returns: boolean

cloneNode(deep)

Returns: Node

ParamType
deep
boolean

appendChild(child)

Returns: Node

ParamType
child
Node

insertBefore(child, before)

Returns: Node

ParamType
child
Node
before
Node

replaceChild(newChild, oldChild)

Returns: Node

ParamType
newChild
Node
oldChild
Node

removeChild(child)

Returns: Node

ParamType
child
Node

remove()

before(...nodes)

ParamType
...nodes
Array<Node>

after(...nodes)

ParamType
...nodes
Array<Node>

replaceWith(...nodes)

ParamType
...nodes
Array<Node>

contains(node)

ParamType
node
Node

getRootNode(options)

Returns: Node - root node

ParamType
options
Object

addEventListener(eventName, callback, options)

See: EventTarget - addEventListener

ParamTypeDescription
eventName
*
callback
*
options
boolean | Object
Boolean value denoting capture value or options object. Currently supports only capture in options object ({ capture: bool_value }).

removeEventListener(eventName, callback, options)

See: EventTarget - removeEventListener

ParamTypeDescription
eventName
*
callback
*
options
boolean | Object
Boolean value denoting capture value or options object. Currently supports only capture in options object ({ capture: bool_value }).

dispatchEvent(event)

ParamType
event
*
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.