Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CommentNode

htmlparser2 tree adapter CommentNode interface.

Hierarchy

Index

Properties

Optional ___location

___location: Location

Comment source code location info. Available if location info is enabled via Options.ParserOptions.

data

data: string

Comment text.

name

name: "comment"

The name of the node.

next

next: Node

Next sibling.

nextSibling

nextSibling: Node

Same as next. DOM spec-compatible alias.

nodeType

nodeType: number

DOM spec-compatible node type.

nodeValue

nodeValue: string

Same as data. DOM spec-compatible alias.

parent

parent: ParentNode

Parent node.

parentNode

parentNode: ParentNode

Same as parent. DOM spec-compatible alias.

prev

prev: Node

Previous sibling.

previousSibling

previousSibling: Node

Same as prev. DOM spec-compatible alias.

type

type: string

The type of the node. E.g. Document will have type equal to 'root'`.

Generated using TypeDoc