lib/client/is_visible.js
function isDocumentElement(element) {
	if (   element == document.body
		|| element.nodeType === 9
		|| (element.nodeType == 1 && element.nodeName == 'HTML')) {
		return true;
	}

	return false;
}
function isDocumentElement(element) {
	if (   element == document.body
		|| element.nodeType === 9
		|| (element.nodeType == 1 && element.nodeName == 'HTML')) {
		return true;
	}

	return false;
}
function isDocumentElement ( element ) { if ( element == document . body || element . nodeType === 9 || ( element . nodeType == 1 && element . nodeName == 'HTML' ) ) { return true ; } return false ; }
Returns true if the element is the body or document or html element

@author   Jelle De Loecker   <jelle@develry.be>
@since    1.2.2
@version  1.2.2

@param    {HTMLElement}   element

@return   {Boolean}
Returns true if the element is the body or document or html element