Automattic\WooCommerce\Vendor\Pelago\Emogrifier\HtmlProcessor

AbstractHtmlProcessor::createUnifiedDomDocumentprivateWC 1.0

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.

Метод класса: AbstractHtmlProcessor{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// private - только в коде основоного (родительского) класса
$result = $this->createUnifiedDomDocument( $html ): void;
$html(строка) (обязательный)
.

Код AbstractHtmlProcessor::createUnifiedDomDocument() WC 10.4.3

private function createUnifiedDomDocument(string $html): void
{
    $this->createRawDomDocument($html);
    $this->ensureExistenceOfBodyElement();
}