Automattic\WooCommerce\Vendor\Pelago\Emogrifier
CssInliner::getNodesToExclude
Find the nodes that are not to be emogrified.
Method of the class: CssInliner{}
No Hooks.
Returns
list<\DOMElement>.
Usage
// private - for code of main (parent) class only $result = $this->getNodesToExclude(): array;
CssInliner::getNodesToExclude() CssInliner::getNodesToExclude code WC 10.8.1
private function getNodesToExclude(): array
{
$excludedNodes = [];
foreach (\array_keys($this->excludedSelectors) as $selectorToExclude) {
foreach ($this->querySelectorAll($selectorToExclude) as $node) {
$excludedNodes[] = $this->ensureNodeIsElement($node);
}
}
return $excludedNodes;
}