May 2011
Intermediate to advanced
1093 pages
40h 54m
English
Comment — an HTML or XML comment
Node
A Comment node represents a comment in an HTML or XML
document. The content of the comment (i.e., the text between
<!-- and -->) is available through the data property or through the nodeValue property inherited from Node.
You can create a comment object with
Document.createComment().
string dataThe text of the comment.
readonly unsigned long lengthThe number of characters in the comment.
void appendData(string
data)void deleteData(unsigned long
offset, unsigned long
count)void insertData(unsigned long
offset, string
data)void replaceData(unsigned long
offset, unsigned long
count, string
data)string substringData(unsigned long
offset, unsigned long
count)Comment nodes have most of the methods of a Text node, and those methods work as they do on Text nodes. They are listed here, but see Text for documentation.
Read now
Unlock full access