2.2.1.5 HTMLCommentElement

Quirks Mode, IE7 Mode, and IE8 Mode (All Versions)

The HTMLCommentElement interface indicates a comment that will not be displayed.

The HTMLCommentElement interface has been added with the following attributes:

The HTMLCommentElement interface has been added with the following methods:

  • appendData() – Defined in [DOM Level 2 - Core]

  • atomic – See [MS-DOM2CE]

  • deleteData() – Defined in [DOM Level 2 - Core]

  • insertData() – Defined in [DOM Level 2 - Core]

  • replaceData() – Defined in [DOM Level 2 - Core]

  • substringData() – Defined in [DOM Level 2 - Core]

For more information about the HTMLCommentElement interface, see comment.

 //Introduced in Internet Explorer.
 interface HTMLCommentElement : HTMLElement {
             attribute DOMstring       datatext  
     Node              appendData(in DOMstring data);
     Node              atomic();
     Node              deleteData(in DOMstring data);
     Node              insertData(in DOMstring data);
     Node              replaceData(in DOMstring data);
     Node              substringData(in DOMstring data);
 };
Show: