public/ckeditor/4.4dev/core/htmlparser/element.js
function( index ) {
			var cloneChildren = this.children.splice( index, this.children.length - index ),
				clone = this.clone();

			for ( var i = 0; i < cloneChildren.length; ++i )
				cloneChildren[ i ].parent = clone;

			clone.children = cloneChildren;

			if ( cloneChildren[ 0 ] )
				cloneChildren[ 0 ].previous = null;

			if ( index > 0 )
				this.children[ index - 1 ].next = null;

			this.parent.add( clone, this.getIndex() + 1 );

			return clone;
		}
function( index ) {
			var cloneChildren = this.children.splice( index, this.children.length - index ),
				clone = this.clone();

			for ( var i = 0; i < cloneChildren.length; ++i )
				cloneChildren[ i ].parent = clone;

			clone.children = cloneChildren;

			if ( cloneChildren[ 0 ] )
				cloneChildren[ 0 ].previous = null;

			if ( index > 0 )
				this.children[ index - 1 ].next = null;

			this.parent.add( clone, this.getIndex() + 1 );

			return clone;
		}
function ( index ) { var cloneChildren = this . children . splice ( index , this . children . length - index ) , clone = this . clone ( ) ; for ( var i = 0 ; i < cloneChildren . length ; ++ i ) cloneChildren [ i ] . parent = clone ; clone . children = cloneChildren ; if ( cloneChildren [ 0 ] ) cloneChildren [ 0 ] . previous = null ; if ( index > 0 ) this . children [ index - 1 ] . next = null ; this . parent . add ( clone , this . getIndex ( ) + 1 ) ; return clone ; }
Splits this element at the given index.

@since 4.3
@param {Number} index Index at which the element will be split &mdash; `0` means the beginning,
`1` after first child node, etc.
@returns {CKEDITOR.htmlParser.element} The new element following this one.
Splits this element at the given index .