code: function checkChildren( children, newParentName ) {
  		var allowed = DTD[ newParentName ];
  
  		for ( var i = 0, l = children.length, child; i < l; ++i ) {
  			child = children[ i ];
  			if ( child.type == CKEDITOR.NODE_ELEMENT && !allowed[ child.name ] )
  				return false;
  		}
  
  		return true;
  	}
docs: Check whether all children will be valid in new context. Note: it doesn't verify if text node is valid, because new parent should accept them.