2 Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
\r
3 For licensing, see LICENSE.html or http://ckeditor.com/license
\r
7 * @fileOverview Defines the {@link CKEDITOR.dom.comment} class, which represents
\r
8 * a DOM comment node.
\r
11 CKEDITOR.dom.comment = CKEDITOR.tools.createClass(
\r
13 base : CKEDITOR.dom.node,
\r
15 $ : function( text, ownerDocument )
\r
17 if ( typeof text == 'string' )
\r
18 text = ( ownerDocument ? ownerDocument.$ : document ).createComment( text );
\r
25 type : CKEDITOR.NODE_COMMENT,
\r
27 getOuterHtml : function()
\r
29 return '<!--' + this.$.nodeValue + '-->';
\r