Automattic\WooCommerce\Vendor\Pelago\Emogrifier\HtmlProcessor
CssToAttributeConverter::getAllNodesWithStyleAttribute
Returns a list with all DOM nodes that have a style attribute.
Метод класса: CssToAttributeConverter{}
Хуков нет.
Возвращает
\DOMNodeList.
Использование
// private - только в коде основоного (родительского) класса $result = $this->getAllNodesWithStyleAttribute(): \DOMNodeList;
Код CssToAttributeConverter::getAllNodesWithStyleAttribute() CssToAttributeConverter::getAllNodesWithStyleAttribute WC 10.4.3
private function getAllNodesWithStyleAttribute(): \DOMNodeList
{
return $this->getXPath()->query('//*[@style]');
}