#14874 closed defect (wontfix)
Camel Cased classname queries fail on lite engine
Reported by: | bill | Owned by: | Kris Zyp |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | Query | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
See related ticket #8775. Apparently CSS Spec denotes class selectors are supposed to be case insensitive. In tests/query/query.html:
query('.fooBar')
should match both:
<h3 class="baz foobar" title="thud">h3</h3> <span class="fooBar baz foo"></span>
but it only matches one of them.
Tested on FF11/mac.
Uncomment the test in tests/query/query.html when this is fixed.
Change History (7)
comment:1 Changed 9 years ago by
comment:2 Changed 9 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Case sensitivity is dependent on the doctype. Some doctypes denote case sensitivity of class names and some don't. I believe that for the doctype of the test page, the class names are supposed to be case sensitive.
comment:3 Changed 9 years ago by
OK, I read over #8775 and it does say that standards mode is supposed to be case sensitive. OTOH, it still seems to be case insensitive for tag names as shown by the other tests in query.html:
"doh.is(1, (query('span.baz')).length);", "doh.is(1, (query('sPaN.baz')).length);", "doh.is(1, (query('SPAN.baz')).length);",
Anyway, I'll update the test file to indicate that only acme is case-insensitive on class names in standards-mode documents.
In [27986]: