| 1 | /*global Autolinker */ |
| 2 | /** |
| 3 | * @class Autolinker.htmlParser.TextNode |
| 4 | * @extends Autolinker.htmlParser.HtmlNode |
| 5 | * |
| 6 | * Represents a text node that has been parsed by the {@link Autolinker.htmlParser.HtmlParser}. |
| 7 | * |
| 8 | * See this class's superclass ({@link Autolinker.htmlParser.HtmlNode}) for more |
| 9 | * details. |
| 10 | */ |
| 11 | Autolinker.htmlParser.TextNode = Autolinker.Util.extend( Autolinker.htmlParser.HtmlNode, { |
| 12 | |
| 13 | /** |
| 14 | * Returns a string name for the type of node that this class represents. |
| 15 | * |
| 16 | * @return {String} |
| 17 | */ |
| 18 | getType : function() { |
| 19 | return 'text'; |
| 20 | } |
| 21 | |
| 22 | } ); |