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)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ian, Assigned: gilles+mozilla)

References

()

Details

Attachments

(1 file, 2 obsolete files)

[class=foo] shouldn't match <p class="FOO"> and yet it does. Test: http://www.hixie.ch/tests/adhoc/html/case-sensitivity/002.html
This is similar to bug 12386.
Attached patch Adapted patch from bug 12386 (obsolete) — Splinter Review
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)
Attached patch Updated patch (obsolete) — Splinter Review
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
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.
Attachment #138154 - Attachment is obsolete: true
Attachment #138165 - Flags: superreview?
Attachment #138165 - Flags: review?
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+
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.

Attachment

General

Creator:
Created:
Updated:
Size: