public/ckeditor/4.4dev/core/htmlparser/element.js
function( condition ) {
			if ( !condition )
				return this.children.length ? this.children[ 0 ] : null;

			if ( typeof condition != 'function' )
				condition = nameCondition( condition );

			for ( var i = 0, l = this.children.length; i < l; ++i ) {
				if ( condition( this.children[ i ] ) )
					return this.children[ i ];
			}
			return null;
		}
function( condition ) {
			if ( !condition )
				return this.children.length ? this.children[ 0 ] : null;

			if ( typeof condition != 'function' )
				condition = nameCondition( condition );

			for ( var i = 0, l = this.children.length; i < l; ++i ) {
				if ( condition( this.children[ i ] ) )
					return this.children[ i ];
			}
			return null;
		}
function ( condition ) { if ( ! condition ) return this . children . length ? this . children [ 0 ] : null ; if ( typeof condition != 'function' ) condition = nameCondition ( condition ) ; for ( var i = 0 , l = this . children . length ; i < l ; ++ i ) { if ( condition ( this . children [ i ] ) ) return this . children [ i ] ; } return null ; }
Gets this element's first child. If `condition` is given, this method returns
the first child which satisfies that condition.

@since 4.3
@param {String/Object/Function} condition Name of a child, a hash of names, or a validator function.
@returns {CKEDITOR.htmlParser.node}
Gets this element s first child . If condition is given this method returns the first child which satisfies that condition .