Edit in GitHubLog an issue

Comment

Extends: CharacterData

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

new Comment(document, comment)

Creates an instance of Comment.

ParamType
document
comment
string

comment.nodeName : string

Read only

comment.nodeType : number

Read only

comment.data : string

comment.textContent : string

comment.nodeValue : string

comment.length : number

Read only

comment.contentEditable

Read only

comment.isConnected : boolean

Read only

comment.parentNode : Node

Read only

comment.parentElement : Element

Read only

comment.firstChild : Node

Read only

comment.lastChild : Node

Read only

comment.previousSibling : Node

Read only

comment.nextSibling : Node

Read only

comment.firstElementChild : Node

Read only

comment.lastElementChild : Node

Read only

comment.previousElementSibling : Node

Read only

comment.nextElementSibling : Node

Read only

comment.childNodes : NodeList

Read only

comment.children : HTMLCollection

Read only

comment.ownerDocument

Read only

comment.attributes

Read only

comment.substringData(offset, count)

ParamType
offset
\*
count
\*

comment.appendData(arg)

ParamType
arg
string

comment.insertData(offset, arg)

ParamType
offset
number
arg
string

comment.deleteData(offset, count)

ParamType
offset
number
count
number

comment.replaceData(offset, count, arg)

ParamType
offset
number
count
number
arg
string

comment.hasChildNodes()

comment.cloneNode(deep)

ParamType
deep
boolean

comment.appendChild(child)

ParamType
child

comment.insertBefore(child, before)

ParamType
child
before

comment.replaceChild(newChild, oldChild)

ParamType
newChild
oldChild

comment.removeChild(child)

ParamType
child

comment.remove()

comment.before(...nodes)

ParamType
...nodes

comment.after(...nodes)

ParamType
...nodes

comment.replaceWith(...nodes)

ParamType
...nodes

comment.contains(node)

ParamType
node

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

ParamTypeDefault
eventName
\*
callback
\*
[capture]
boolean
false

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

ParamTypeDefault
eventName
\*
callback
\*
[capture]
boolean
false

comment.dispatchEvent(event)

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