CssSelectorConverter::toXPath( string $cssExpr, string $prefix = 'descendant-or-self::' )

Translates a CSS expression to its XPath equivalent.


Description Description

Optionally, a prefix can be added to the resulting XPath expression with the $prefix parameter.


Parameters Parameters

$cssExpr

(Required) The CSS expression

$prefix

(Optional) An optional prefix for the XPath expression

Default value: 'descendant-or-self::'


Top ↑

Return Return

(string)


Top ↑

Source Source

File: vendor/symfony/css-selector/CssSelectorConverter.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.