2 Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
\r
3 For licensing, see LICENSE.html or http://ckeditor.com/license
\r
6 * DocumentFragment is a "lightweight" or "minimal" Document object. It is
\r
7 * commonly used to extract a portion of a document's tree or to create a new
\r
8 * fragment of a document. Various operations may take DocumentFragment objects
\r
9 * as arguments and results in all the child nodes of the DocumentFragment being
\r
10 * moved to the child list of this node.
\r
12 * @param {Object} ownerDocument
\r
14 CKEDITOR.dom.documentFragment = function( ownerDocument )
\r
16 ownerDocument = ownerDocument || CKEDITOR.document;
\r
17 this.$ = ownerDocument.$.createDocumentFragment();
\r
20 CKEDITOR.tools.extend( CKEDITOR.dom.documentFragment.prototype,
\r
21 CKEDITOR.dom.element.prototype,
\r
23 type : CKEDITOR.NODE_DOCUMENT_FRAGMENT,
\r
24 insertAfterNode : function( node )
\r
27 node.parentNode.insertBefore( this.$, node.nextSibling );
\r
39 'insertAfterNode' : 1,
\r
46 'getChildCount' : 1,
\r