Automattic\WooCommerce\Vendor\Pelago\Emogrifier\HtmlProcessor
AbstractHtmlProcessor::getBodyElement
Returns the BODY element.
This method assumes that there always is a BODY element.
Method of the class: AbstractHtmlProcessor{}
No Hooks.
Returns
\DOMElement.
Usage
// private - for code of main (parent) class only $result = $this->getBodyElement(): \DOMElement;
AbstractHtmlProcessor::getBodyElement() AbstractHtmlProcessor::getBodyElement code WC 10.7.0
private function getBodyElement(): \DOMElement
{
$node = $this->getDomDocument()->getElementsByTagName('body')->item(0);
if (!$node instanceof \DOMElement) {
throw new \RuntimeException('There is no body element.', 1617922607);
}
return $node;
}