class SyntaxErrorException extendsParseException

ParseException is thrown when a CSS selector syntax is not valid.

This component is a port of the Python cssselect library, which is copyright Ian Bicking, see https://github.com/SimonSapin/cssselect.

Methods

unexpectedToken(string$expectedValue,Token$foundToken)

No description

pseudoElementFound(string$pseudoElement,string$unexpectedLocation)

No description

unclosedString(int$position)

No description

nestedNot()

No description

notAtTheStartOfASelector(string$pseudoElement)

No description

Details

staticSyntaxErrorException unexpectedToken(string$expectedValue,Token$foundToken)

Parameters

string $expectedValue
Token $foundToken

Return Value

SyntaxErrorException

staticSyntaxErrorException pseudoElementFound(string$pseudoElement,string$unexpectedLocation)

Parameters

string $pseudoElement
string $unexpectedLocation

Return Value

SyntaxErrorException

staticSyntaxErrorException unclosedString(int$position)

Parameters

int $position

Return Value

SyntaxErrorException

staticSyntaxErrorException nestedNot()

Return Value

SyntaxErrorException

staticSyntaxErrorException notAtTheStartOfASelector(string$pseudoElement)

Parameters

string $pseudoElement

Return Value

SyntaxErrorException

staticSyntaxErrorException stringAsFunctionArgument()

Return Value

SyntaxErrorException