On this pageComment Comments within the document. The Comment element extends the one from Domhandler to add some extra properties (https://domhandler.js.org/classes/Comment.html)HierarchyDataNodeCommentIndex ConstructorsconstructorPropertieschildrenclosedatalocopenparentAccessorsnodeValueConstructors constructornew Comment(data: string): CommentParametersdata: stringReturns CommentProperties childrenchildren: Node[] = []closeclose: undefined | CharValuedatadata: stringlocloc: Rangeopenopen: CharValueparentparent: null | NodeWithChildren = nullAccessors nodeValueget nodeValue(): stringset nodeValue(data: string): voidReturns stringParametersdata: stringReturns void
Comments within the document.
The Comment element extends the one from Domhandler to add some extra properties (https://domhandler.js.org/classes/Comment.html)