w3c / w3c/csswg-drafts

[css-selectors] Error in the defintion of V in the lexical scanner section?

Open
#6,955 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

selectors-3
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

On the Lexical Scanner section of the documentation on the Selectors Level 3, the lexer defines V as:

V         v|\\0{0,4}(58|78)(\r\n|[ \t\r\n\f])?|\\v

I'm wondering why it uses 58 or 78. Based on the other items, this is to specify the character in its hexadecimal form, but the hexadecimal form of the ASCII V is 0x56 (or 0x76 for lowercase), not 0x58 (this is the ASCII code for X). Therefore shouldn't V be defined as:

V         v|\\0{0,4}(56|76)(\r\n|[ \t\r\n\f])?|\\v

or am I missing something?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Selectors Level 3 Lexical Scanner section and inspect the surrounding character definitions and the reported V rule. Confirm the intended hexadecimal values against the specification's notation; done means the authoritative source and published wording consistently reflect the verified definition.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.