Skip to content

Fix ID selector syntax#114

Open
annbgn wants to merge 1 commit intoscrapy:masterfrom
annbgn:fix_id_selector_syntax
Open

Fix ID selector syntax#114
annbgn wants to merge 1 commit intoscrapy:masterfrom
annbgn:fix_id_selector_syntax

Conversation

@annbgn
Copy link
Contributor

@annbgn annbgn commented Apr 6, 2021

In issue #24 it is mentioned that https://www.w3.org/TR/CSS21/syndata.html#value-def-identifier says:

cannot start with a digit, two hyphens, or a hyphen followed by a digit

this pr adds validation for the 3 cases mentioned and raises error. tests are also extended.

@Gallaecio
Copy link
Member

#24 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants