addComment

addComment(text: String): JadeXMLComment updating;

The addComment method of the JadeXMLElement class creates and adds a comment node with the value specified in the text parameter and returns a reference to the created JadeXMLComment node instance.