Automattic\WooCommerce\Vendor\Pelago\Emogrifier
CssInliner::getAllNodesWithStyleAttribute
Returns a list with all DOM nodes that have a style attribute.
Method of the class: CssInliner{}
No Hooks.
Returns
\DOMNodeList.
Usage
// private - for code of main (parent) class only $result = $this->getAllNodesWithStyleAttribute(): \DOMNodeList;
CssInliner::getAllNodesWithStyleAttribute() CssInliner::getAllNodesWithStyleAttribute code WC 10.5.0
private function getAllNodesWithStyleAttribute(): \DOMNodeList
{
$query = '//*[@style]';
$matches = $this->getXPath()->query($query);
if (!$matches instanceof \DOMNodeList) {
throw new \RuntimeException('XPatch query failed: ' . $query, 1618577797);
}
return $matches;
}