Closed
Bug 229172
Opened 21 years ago
Closed 21 years ago
class attribute case insensitive when used with [class=""] (also archive, cite, datetime, href, and name attributes)
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: ian, Assigned: gilles+mozilla)
References
()
Details
Attachments
(1 file, 2 obsolete files)
2.02 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
|
Details | Diff | Splinter Review |
[class=foo] shouldn't match <p class="FOO"> and yet it does.
Test: http://www.hixie.ch/tests/adhoc/html/case-sensitivity/002.html
Assignee | ||
Comment 2•21 years ago
|
||
Reporter | ||
Comment 3•21 years ago
|
||
While you're at it, I noticed we should also add the following attributes to the
case sensitive list: archive, cite, datetime, href, name
Testcase: http://www.hixie.ch/tests/adhoc/html/case-sensitivity/003.html
Summary: class attribute case insensitive when used with [class=""] → class attribute case insensitive when used with [class=""] (also archive, cite, datetime, href, and name attributes)
Assignee | ||
Comment 4•21 years ago
|
||
This updated patch contains all new attributes.
All tests with the substring selector and capital value (some_attr*="TEST")
still fail.
Somebody who knows more about the CSS parser might want to take a look.
Attachment #137836 -
Attachment is obsolete: true
Assignee | ||
Comment 5•21 years ago
|
||
http://lxr.mozilla.org/mozilla/source/content/html/style/src/nsCSSStyleSheet.cpp#3425
For |NS_ATTR_FUNC_CONTAINSMATCH|, a case-insensitive comparator is always used.
Assignee | ||
Comment 6•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Attachment #138154 -
Attachment is obsolete: true
Assignee | ||
Updated•21 years ago
|
Attachment #138165 -
Flags: superreview?
Attachment #138165 -
Flags: review?
Reporter | ||
Comment 7•21 years ago
|
||
For historical reference, this was broken by alecf back in May 2002 as part of a
wide String API change:
http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=context&whitespace_mode=show&file=nsCSSStyleSheet.cpp&branch=&root=/cvsroot&subdir=mozilla/content/html/style/src&command=DIFF_FRAMESET&rev1=3.204&rev2=3.205
Reporter | ||
Updated•21 years ago
|
Attachment #138165 -
Flags: superreview? → superreview?(dbaron)
Comment on attachment 138165 [details] [diff] [review]
Also fixes case-sensitivity for substring selector
I'll check this in shortly...
Attachment #138165 -
Flags: superreview?(dbaron)
Attachment #138165 -
Flags: superreview+
Attachment #138165 -
Flags: review?
Attachment #138165 -
Flags: review+
.
Assignee: dbaron → mozbug
Fix checked in to trunk, 2003-12-30 09:58 -0800. Thanks for the patch.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•