#12801 closed bug (duplicate)
Enumerated values in selectors are case sensitive
Reported by: | Wilto | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | None |
Component: | selector | Version: | 1.8.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Enumerated values like type
are specced as being case insensitive, while all other attribute values are case sensitive—Sizzle is currently case sensitive across the board.
Further discussion at https://github.com/jquery/jquery-mobile/issues/4860
Change History (5)
comment:1 Changed 10 years ago by
Component: | unfiled → selector |
---|---|
Milestone: | None → 1.9 |
Priority: | undecided → high |
Status: | new → open |
comment:2 Changed 10 years ago by
Here's a fiddle from the Mobile bug report: http://jsfiddle.net/thayes/SQyXc/1/
comment:3 Changed 10 years ago by
This will end up being ported into Sizzle's issue tracker. Browsers don't seem to expose a way to determine whether the attribute is enumerated. I vaguely thought there was something on an attributeNode but I was thinking of .specified
. So it seems we'd either need a hard-coded list of the affected attributes or a feature test of some kind where we could cache the outcome.
Ref:
http://www.whatwg.org/specs/web-apps/current-work/#keywords-and-enumerated-attributes
comment:4 Changed 10 years ago by
Resolution: | → duplicate |
---|---|
Status: | open → closed |
This is already an issue in Sizzle: https://github.com/jquery/sizzle/issues/122. However, it's not labeled high priority as the fix requires a good amount of bytes.
comment:5 Changed 10 years ago by
Milestone: | 1.9 → None |
---|
Here's a fiddle from gnarf: http://jsfiddle.net/QMweQ/2/