Automattic\WooCommerce\EmailEditorVendor\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 11.3.0
private function getAllNodesWithStyleAttribute(): \DOMNodeList
{
return $this->getXPath()->query('//*[@style]');
}