• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 # Interface: CommentNode
2 
3 ### Properties
4 
5 * [data](#data)
6 * [name](#name)
7 * [next](#next)
8 * [nextSibling](#nextsibling)
9 * [nodeType](#nodetype)
10 * [nodeValue](#nodevalue)
11 * [parent](#parent)
12 * [parentNode](#parentnode)
13 * [prev](#prev)
14 * [previousSibling](#previoussibling)
15 * [sourceCodeLocation](#sourcecodelocation)
16 * [type](#type)
17 
18 ---
19 
20 ## Properties
21 
22 <a id="data"></a>
23 
24 ###  data
25 
26 **● data**: *`string`*
27 
28 Comment text.
29 
30 ___
31 <a id="name"></a>
32 
33 ###  name
34 
35 **● name**: *"comment"*
36 
37 The name of the node.
38 
39 ___
40 <a id="next"></a>
41 
42 ###  next
43 
44 **● next**: *Node*
45 
46 Next sibling.
47 
48 ___
49 <a id="nextsibling"></a>
50 
51 ###  nextSibling
52 
53 **● nextSibling**: *Node*
54 
55 Same as [next](#next). [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
56 
57 ___
58 <a id="nodetype"></a>
59 
60 ###  nodeType
61 
62 **● nodeType**: *`number`*
63 
64 [DOM spec](https://dom.spec.whatwg.org/#dom-node-nodetype)-compatible node [type](#type).
65 
66 ___
67 <a id="nodevalue"></a>
68 
69 ###  nodeValue
70 
71 **● nodeValue**: *`string`*
72 
73 Same as [data](#data). [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
74 
75 ___
76 <a id="parent"></a>
77 
78 ###  parent
79 
80 **● parent**: *Node*
81 
82 Parent node.
83 
84 ___
85 <a id="parentnode"></a>
86 
87 ###  parentNode
88 
89 **● parentNode**: *Node*
90 
91 Same as [parent](#parent). [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
92 
93 ___
94 <a id="prev"></a>
95 
96 ###  prev
97 
98 **● prev**: *Node*
99 
100 Previous sibling.
101 
102 ___
103 <a id="previoussibling"></a>
104 
105 ###  previousSibling
106 
107 **● previousSibling**: *Node*
108 
109 Same as [prev](#prev). [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
110 
111 ___
112 <a id="sourcecodelocation"></a>
113 
114 ### `<Optional>` sourceCodeLocation
115 
116 **● sourceCodeLocation**: *[Location](../../parse5/docs/source-code-location/location.md)*
117 
118 Comment source code location info. Available if location info is enabled via [ParserOptions](../../parse5/docs/options/parser-options.md).
119 
120 ___
121 <a id="type"></a>
122 
123 ###  type
124 
125 **● type**: *`string`*
126 
127 The type of the node. E.g. [Document](document.md) will have `type` equal to 'root'`.
128 
129 ___
130 
131