Automattic\WooCommerce\Vendor\Pelago\Emogrifier\HtmlProcessor
AbstractHtmlProcessor::createUnifiedDomDocument
Creates a DOM document from the given HTML and stores it in $this->domDocument.
The DOM document will always have a BODY element and a document type.
Method of the class: AbstractHtmlProcessor{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->createUnifiedDomDocument( $html ): void;
- $html(string) (required)
- .
AbstractHtmlProcessor::createUnifiedDomDocument() AbstractHtmlProcessor::createUnifiedDomDocument code WC 10.4.3
private function createUnifiedDomDocument(string $html): void
{
$this->createRawDomDocument($html);
$this->ensureExistenceOfBodyElement();
}