class Parser implements ParserInterface
CSS selector parser.
This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect.
__construct(Tokenizer $tokenizer = null) | ||
array | parse(string $source) Parses given selector source into an array of tokens. | |
static array | parseSeries(array $tokens) Parses the arguments for ":nth-child()" and friends. |
Tokenizer | $tokenizer |
Parses given selector source into an array of tokens.
string | $source |
array |
Parses the arguments for ":nth-child()" and friends.
array | $tokens |
array |
SyntaxErrorException |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/CssSelector/Parser/Parser.html