CssSelectorConverter
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) | ||
string | toXPath(string $cssExpr, string $prefix = 'descendant-or-self::') Translates a CSS expression to its XPath equivalent. |
Details
__construct(bool $html = true)
Parameters
bool | $html | Whether HTML support should be enabled. Disable it for XML documents |