WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
186234
Tag ID's can start with a number
https://bugs.webkit.org/show_bug.cgi?id=186234
Summary
Tag ID's can start with a number
Blake McBride
Reported
2018-06-02 06:56:59 PDT
Created
attachment 341846
[details]
Shows the problem Steps to reproduce: Run the attached script. Actual results: Displayed: AAA in red AAA no color Expected results: AAA in red AAA in blue Safari doesn't work if a tag's ID is all numeric. The current HTML spec states: "IDs can consist of just digits, start with a digit, start with an underscore, consist of just punctuation, etc." See:
https://www.w3.org/TR/html5/dom.html#element-attrdef-global-id
Attachments
Shows the problem
(372 bytes, text/html)
2018-06-02 06:56 PDT
,
Blake McBride
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Blake McBride
Comment 1
2018-06-02 07:33:02 PDT
HTML specification is not applicable to CSS selectors. Per the CSS specification: an all-numeric id should be escaped, see
https://www.w3.org/International/questions/qa-escapes#css_identifiers
However, if you change the CSS selector to #\222 it still doesn't work.
Blake McBride
Comment 2
2018-06-02 07:53:16 PDT
I now see that \2 is not a "2"... It should be #\32 22 as you can see in the examples of CSS escaping linked above.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug