Automattic\WooCommerce\EmailEditorVendor\Pelago\Emogrifier
CssInliner::selectorPartHasUnsupportedOfTypePseudoClass
Tests if part of a selector contains an ...of-type pseudo-class such that it cannot be converted to an XPath expression.
Метод класса: CssInliner{}
Хуков нет.
Возвращает
bool. true if the selector part does not have a type but does have an ...of-type pseudo-class
Использование
// private - только в коде основоного (родительского) класса $result = $this->selectorPartHasUnsupportedOfTypePseudoClass( $selectorPart ): bool;
- $selectorPart(строка) (обязательный)
- part of a selector which has been split up at combinators.
Код CssInliner::selectorPartHasUnsupportedOfTypePseudoClass() CssInliner::selectorPartHasUnsupportedOfTypePseudoClass WC 11.3.0
private function selectorPartHasUnsupportedOfTypePseudoClass(string $selectorPart): bool
{
$preg = (new Preg())->throwExceptions($this->debug);
if ($preg->match('/^[\\w\\-]/', $selectorPart) !== 0) {
return false;
}
return $preg->match('/:(?:' . self::OF_TYPE_PSEUDO_CLASS_MATCHER . ')/i', $selectorPart) !== 0;
}