Automattic\WooCommerce\Vendor\Pelago\Emogrifier\HtmlProcessor

CssToAttributeConverter::mapCssToHtmlAttributeprivateWC 1.0

Tries to apply the CSS style to $node as an attribute.

This method maps a CSS rule to HTML attributes and adds those to the node.

Метод класса: CssToAttributeConverter{}

Хуков нет.

Возвращает

null. Ничего (null).

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

// private - только в коде основоного (родительского) класса
$result = $this->mapCssToHtmlAttribute( $property, $value, $node ): void;
$property(строка) (обязательный)
the name of the CSS property to map.
$value(строка) (обязательный)
the value of the style rule to map.
$node(DOMElement) (обязательный)
node to apply styles to.

Код CssToAttributeConverter::mapCssToHtmlAttribute() WC 10.4.3

private function mapCssToHtmlAttribute(string $property, string $value, \DOMElement $node): void
{
    if (!$this->mapSimpleCssProperty($property, $value, $node)) {
        $this->mapComplexCssProperty($property, $value, $node);
    }
}