WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Pelago\Emogrifier

CssInliner::normalizeStyleAttributesOfAllNodes() private WC 1.0

Parses the document and normalizes all existing CSS attributes. This changes 'DISPLAY: none' to 'display: none'. We wouldn't have to do this if DOMXPath supported XPath 2.0. Also stores a reference of nodes with existing inline styles so we don't overwrite them.

Это метод класса: CssInliner{}

Хуков нет.

Возвращает

null.

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

// private - только в коде основоного (родительского) класса
$result = $this->normalizeStyleAttributesOfAllNodes();

Код CssInliner::normalizeStyleAttributesOfAllNodes() WC 4.5.2

woocommerce/vendor/pelago/emogrifier/src/Emogrifier/CssInliner.php
<?php
private function normalizeStyleAttributesOfAllNodes()
{
    /** @var \DOMElement $node */
    foreach ($this->getAllNodesWithStyleAttribute() as $node) {
        if ($this->isInlineStyleAttributesParsingEnabled) {
            $this->normalizeStyleAttributes($node);
        }
        // Remove style attribute in every case, so we can add them back (if inline style attributes
        // parsing is enabled) to the end of the style list, thus keeping the right priority of CSS rules;
        // else original inline style rules may remain at the beginning of the final inline style definition
        // of a node, which may give not the desired results
        $node->removeAttribute('style');
    }
}