Represents a comment in a XML/HTML document.
Platform Support
| IE | Mozilla | Netscape | Opera | Safari | Chrome | no | 1.0+ | no | 7.0+ | 1.0+ | no |
|---|
Constructors
| Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | Chrome | ||
|---|---|---|---|---|---|---|---|---|---|
|
Comment Constructor() : Comment
Represents a comment in a XML/HTML document.
|
Show Details | no | 1.0+ | no | 7.0+ | 1.0+ | no | ||
Comment() : CommentRepresents a comment in a XML/HTML document. Returns
|
|||||||||
Remarks
Represents the contents of an HTML or XML comment, which begins with the token <!-- and ends with -->.
The contents of this node are any characters that exist between those two tokens.
Comment inherits
its capabilities from CharacterData. See CharacterData for more information on the methods and
properties available via the Comment object.
References
Availability
HTML DOM Level 2|W3C