Closed Bug 35800 Opened 26 years ago Closed 26 years ago

class names in non-ASCII charset are not recognized

Categories

(Core :: CSS Parsing and Computation, defect, P3)

All
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: attinasi, Assigned: attinasi)

References

()

Details

The CSSScanner is not designed to handle tokens that are in non-ASCII range. nsCSSScanner::Next is used to read up tokens, however it assumes that characters are less than 256: PRBool nsCSSScanner::Next(PRInt32& aErrorCode, nsCSSToken& aToken) { PRInt32 ch = Read(aErrorCode); if (ch < 0) { return PR_FALSE; } if (ch < 256) { // OUCH! what about I18L ???
Blocks: 2870
Target Milestone: --- → M16
This bug is a blocker for supporint @charset in an external style sheet. If a style sheet has character values > 256 then the CSS parser will not deal with it, so supporting @charset is of very dubious value.
Status: NEW → ASSIGNED
Moving to M20 since this is probably not a big priority and the changes required are quite extensive and risky. Workaround is to put classname in quotes.
Target Milestone: M16 → M20
See bug 38038: possible patch proposed, and additional test case.
Patch checked in, bug fixed. Thanks again VYV03354@nifty.ne.jp!
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Netscape's standard compliance QA team reorganised itself once again, so taking remaining non-tables style bugs. Sorry about the spam. I tried to get this done directly at the database level, but apparently that is "not easy because of the shadow db", "plus it screws up the audit trail", so no can do...
QA Contact: chrisd → ian
test case passes
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.