Closed
Bug 38179
Opened 25 years ago
Closed 25 years ago
Class names with underscore should not be allowed
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: emk, Assigned: attinasi)
References
()
Details
Attachments
(1 file)
452 bytes,
text/html
|
Details |
Steps to reproduce:
1. Launch Mozilla.
2. Navigate to the following attachment.
Actual behavior:
Both paragraphs will be red.
Expected behavior:
First paragraph should be black per spec.
( http://www.w3.org/TR/REC-CSS2/syndata.html#q4 )
|The following rules always hold:
(snip)
|*In CSS2, identifiers (including element names, classes, and IDs in selectors)
|can contain only the characters [A-Za-z0-9] and ISO 10646 characters 161 and
|higher, plus the hyphen (-);
This doesn't include undescore.
Nav4 also doesn't recognize class names with underscore.
Fixing this is very easy. Simply back the changes to nsCSSScanner.cpp in Jun 22
1999 (See the above URL).
Reporter | ||
Comment 1•25 years ago
|
||
Comment 2•25 years ago
|
||
Another excellent bug (with a fix!) from VYV03354@nifty.ne.jp.
Reassigned to Marc, like bug 38038.
Assignee: pierre → attinasi
Assignee | ||
Comment 3•25 years ago
|
||
Very strange... Why would Peter specifically add code to support underscores in
identifiers when the spec is so clear on their illegality?
Anyway, thanks VYV03354 (is that your real name?) for finding this and for
proposing the fix. I'll apply it today.
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•25 years ago
|
||
Fix applied. Thanks once again VYV03354@nifty.ne.jp!
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 5•25 years ago
|
||
Verified fixed using 2000050513 nightly build on Windows 2000.
Marc: please call me emk. My ISP doesn't allow the name address :-(
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•