public static function closesParent(DOMElement $child, DOMElement $parent)
	{
		$parentName = $parent->nodeName;
		$childName  = $child->nodeName;

		return !empty(self::$htmlElements[$childName]['cp']) && in_array($parentName, self::$htmlElements[$childName]['cp'], true);
	}
public static function closesParent(DOMElement $child, DOMElement $parent)
	{
		$parentName = $parent->nodeName;
		$childName  = $child->nodeName;

		return !empty(self::$htmlElements[$childName]['cp']) && in_array($parentName, self::$htmlElements[$childName]['cp'], true);
	}
public static function closesParent ( DOMElement $ child , DOMElement $ parent ) { $ parentName = $ parent -> nodeName ; $ childName = $ child -> nodeName ; return ! empty ( self :: $ htmlElements [ $ childName ] [ 'cp' ] ) && in_array ( $ parentName , self :: $ htmlElements [ $ childName ] [ 'cp' ] , true ) ; }
Test whether given child element closes given parent element

@param  DOMElement $child
@param  DOMElement $parent
@return bool
Test whether given child element closes given parent element