2 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
\r
3 For licensing, see LICENSE.html or http://ckeditor.com/license
\r
7 * A lightweight representation of an HTML comment.
\r
11 CKEDITOR.htmlParser.comment = function( value )
\r
27 CKEDITOR.htmlParser.comment.prototype =
\r
30 * The node type. This is a constant value set to {@link CKEDITOR.NODE_COMMENT}.
\r
34 type : CKEDITOR.NODE_COMMENT,
\r
37 * Writes the HTML representation of this comment to a CKEDITOR.htmlWriter.
\r
38 * @param {CKEDITOR.htmlWriter} writer The writer to which write the HTML.
\r
41 writeHtml : function( writer, filter )
\r
43 var comment = this.value;
\r
47 if ( !( comment = filter.onComment( comment, this ) ) )
\r
50 if ( typeof comment != 'string' )
\r
52 comment.parent = this.parent;
\r
53 comment.writeHtml( writer, filter );
\r
58 writer.comment( comment );
\r