docs: function appendTag( elem ) {
  		var parent;
  		// no parent or parent is a root = we're at the top level -> try to add to body
  		if ( !elem.parent || elem.parent.type === 'root' ) {
  			parent = find( destChildren, 'html' );
  
  			if ( parent ) {
  				parent = find( parent.children, 'body' );
  			}
  
  			if ( parent ) {
  				utils.appendChild( parent, elem );
  			} else {
  				// append the element to the destination
  				utils.append( destChildren[ destChildren.length - 1 ], elem );
  			}
  			// append the element to the destination
  		} else {
  			utils.append( destChildren[ destChildren.length - 1 ], elem );
  		}
  	}