Next / Previous / Contents / TCC Help System / NM Tech homepage

12.4. Document.createComment()

To create a Comment node with text content taken from string s, call this method on a Document instance D:

D.createComment ( s )

The method returns a new Comment object with no parent. To attach an unattached node pi to a parent node p:

p.appendChild ( pi )