Comment ⇐ Node

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

new Comment(document, comment)

Creates an instance of Comment.

Param Type
document Document
comment string

comment.nodeName : string

Kind: instance property of Comment Read only: true

comment.nodeType : number

Kind: instance property of Comment Read only: true

comment.nodeValue : string

Kind: instance property of Comment Read only: true

comment.contentEditable

Kind: instance property of Comment Read only: true

comment.isConnected : boolean

Kind: instance property of Comment Read only: true

comment.parentNode : Node

Kind: instance property of Comment Read only: true

comment.firstChild : Node

Kind: instance property of Comment Read only: true

comment.lastChild : Node

Kind: instance property of Comment Read only: true

comment.previousSibling : Node

Kind: instance property of Comment Read only: true

comment.nextSibling : Node

Kind: instance property of Comment Read only: true

comment.firstElementChild : Node

Kind: instance property of Comment Read only: true

comment.lastElementChild : Node

Kind: instance property of Comment Read only: true

comment.previousElementSibling : Node

Kind: instance property of Comment Read only: true

comment.nextElementSibling : Node

Kind: instance property of Comment Read only: true

comment.textContent : string

Kind: instance property of Comment

comment.childNodes : NodeList

Kind: instance property of Comment Read only: true

comment.ownerDocument

Kind: instance property of Comment Read only: true

comment.attributes

Kind: instance property of Comment Read only: true

comment.offsetParent

Kind: instance property of Comment Read only: true

comment.hasChildNodes() ⇒ boolean

Kind: instance method of Comment

comment.cloneNode(deep) ⇒ Node

Kind: instance method of Comment

Param Type
deep boolean

comment.appendChild(child) ⇒ Node

Kind: instance method of Comment

Param Type
child Node

comment.insertBefore(child, before) ⇒ Node

Kind: instance method of Comment

Param Type
child Node
before Node

comment.replaceChild(newChild, oldChild) ⇒ Node

Kind: instance method of Comment

Param Type
newChild Node
oldChild Node

comment.removeChild(child) ⇒ Node

Kind: instance method of Comment

Param Type
child Node

comment.remove()

Kind: instance method of Comment

comment.before(...nodes)

Kind: instance method of Comment

Param Type
...nodes Array.<Node>

comment.after(...nodes)

Kind: instance method of Comment

Param Type
...nodes Array.<Node>

comment.replaceWith(...nodes)

Kind: instance method of Comment

Param Type
...nodes Array.<Node>

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

Kind: instance method of Comment

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

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

Kind: instance method of Comment

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

comment.dispatchEvent(event)

Kind: instance method of Comment

Param Type
event *

results matching ""

    No results matching ""