Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. Comment

Comment

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

TheComment 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, like inside SVG or MathML markup, the character sequence-- cannot be used within a comment.

EventTarget Node CharacterData Comment

Instance properties

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

Constructor

Comment()

Returns a newComment object with the parameter as its textual content. If not present, its default value is the empty string,''.

Instance methods

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

Specifications

Specification
DOM
# interface-comment

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp