Our volunteers haven't translated this article into 한국어 yet. Join us and help get the job done!
You can also read the article in English (US).

The Comment interface represents textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. Comments are represented in HTML and XML as content between '<!--' and '-->'. In XML, the character sequence '--' cannot be used within a comment.

Properties

This interface has no specific property, but inherits those of its parent, CharacterData, and indirectly those of Node.

Constructor

Comment()
Returns a Comment object with the parameter as its textual content.

Methods

This interface has no specific method, but inherits those of its parent, CharacterData, and indirectly those of Node.

Specifications

Specification Status Comment
DOM
The definition of 'Comment' in that specification.
Living Standard Added the constructor.
Document Object Model (DOM) Level 3 Core Specification
The definition of 'Comment' in that specification.
Obsolete No change from Document Object Model (DOM) Level 2 Core Specification
Document Object Model (DOM) Level 2 Core Specification
The definition of 'Comment' in that specification.
Obsolete No change from Document Object Model (DOM) Level 1 Specification
Document Object Model (DOM) Level 1 Specification
The definition of 'Comment' in that specification.
Obsolete Initial definition

Browser compatibility

 

 

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support1 Yes1 Yes Yes Yes
Comment() constructor Yes Yes24 No Yes ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes Yes Yes Yes Yes ?
Comment() constructor ? Yes Yes24 Yes ? ?

See also

 

문서 태그 및 공헌자

태그: 
 이 페이지의 공헌자: katzrkool, stevenwdv, arronei, erikadoyle, fscholz, MHasan, teoli, Sheppy, Brettz9
 최종 변경: katzrkool,