CssSelectorConverter
class CssSelectorConverter
CssSelectorConverter is the main entry point of the component and can convert CSS selectors to XPath expressions.
Methods
__construct(bool $html = true)
No description
string
toXPath(string $cssExpr, string $prefix = 'descendant-or-self::')
Translates a CSS expression to its XPath equivalent.
Details
at line line 34
__construct(bool $html = true)
at line line 61
string
toXPath(string $cssExpr, string $prefix = 'descendant-or-self::')
Translates a CSS expression to its XPath equivalent.
Optionally, a prefix can be added to the resulting XPath expression with the $prefix parameter.