/*global Autolinker */ /** * @class Autolinker.htmlParser.CommentNode * @extends Autolinker.htmlParser.HtmlNode * * Represents an HTML comment node that has been parsed by the * {@link Autolinker.htmlParser.HtmlParser}. * * See this class's superclass ({@link Autolinker.htmlParser.HtmlNode}) for more * details. */ Autolinker.htmlParser.CommentNode = Autolinker.Util.extend( Autolinker.htmlParser.HtmlNode, { /** * @cfg {String} comment (required) * * The text inside the comment tag. This text is stripped of any leading or * trailing whitespace. */ comment : '', /** * Returns a string name for the type of node that this class represents. * * @return {String} */ getType : function() { return 'comment'; }, /** * Returns the comment inside the comment tag. * * @return {String} */ getComment : function() { return this.comment; } } );