Comment : CharacterData
Return to: HTML DOM Level 2 index

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
Represents a comment in a XML/HTML document.
Show Details no 1.0+ no 7.0+ 1.0+ no

Comment() : Comment

Represents a comment in a XML/HTML document.

Returns
Comment

Visibility
internal

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

CharacterData

Availability

HTML DOM Level 2|W3C

text_javascript aptana_docs