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