Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 함께 해서 번역을 마치도록 도와 주세요!

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.
Recommendation 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.
Recommendation No change from Document Object Model (DOM) Level 1 Specification
Document Object Model (DOM) Level 1 Specification
The definition of 'Comment' in that specification.
Recommendation Initial definition

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 1.0 1.0 (1.7 or earlier) (Yes) (Yes) (Yes)
Comment() constructor ? 24.0 (24.0) Not supported ? ?
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) 1.0 (1.0) (Yes) (Yes) (Yes)
Comment() constructor ? 24.0 (24.0) Not supported ? ?

See also

 

문서 태그 및 공헌자

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