Closed
Bug 741293
Opened 12 years ago
Closed 12 years ago
argument to :dir() and :-moz-locale-dir() is treated case-sensitively; should be case-insensitive
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: jtd, Assigned: dbaron)
References
Details
Attachments
(1 file, 1 obsolete file)
5.12 KB,
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
The code in CSSParserImpl::ParsePseudoClassWithIdentArg contains: // -moz-locale-dir can only have values of 'ltr' or 'rtl'. if (aType == nsCSSPseudoClasses::ePseudoClass_mozLocaleDir) { if (!mToken.mIdent.EqualsLiteral("ltr") && !mToken.mIdent.EqualsLiteral("rtl")) { return eSelectorParsingStatus_Error; // our caller calls SkipUntil(')') } } http://mxr.mozilla.org/mozilla-central/source/layout/style/nsCSSParser.cpp#3419 Those comparisons need to be case-insensitive.
Assignee | ||
Updated•12 years ago
|
Summary: minor case-sensitivity error in parsing of -moz-locale → argument to :-moz-locale-dir() is treated case-sensitively; should be case-insensitive
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #611465 -
Flags: review?(enndeakin)
Assignee | ||
Comment 3•12 years ago
|
||
Comment on attachment 611465 [details] [diff] [review] patch Er, wait, that's not quite sufficient; need to lowercase what we store too.
Attachment #611465 -
Flags: review?(enndeakin)
Assignee | ||
Comment 4•12 years ago
|
||
(If someone else wants to finish this that's fine with me.)
Assignee | ||
Comment 5•12 years ago
|
||
This is higher priority now that bug 562169 landed. We need to get it in the same release as bug 562169. Patch coming, once I make sure the tests pass.
Assignee: nobody → dbaron
Blocks: 562169
Status: NEW → ASSIGNED
Summary: argument to :-moz-locale-dir() is treated case-sensitively; should be case-insensitive → argument to :dir() and :-moz-locale-dir() is treated case-sensitively; should be case-insensitive
Assignee | ||
Comment 6•12 years ago
|
||
Attachment #653549 -
Flags: review?(smontagu)
Assignee | ||
Updated•12 years ago
|
Attachment #611465 -
Attachment is obsolete: true
Updated•12 years ago
|
Attachment #653549 -
Flags: review?(smontagu) → review+
Assignee | ||
Comment 7•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/d086edab3616
Priority: -- → P3
Comment 8•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d086edab3616
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in
before you can comment on or make changes to this bug.
Description
•