Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#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 7 years ago by mikesherov

Component: unfiledselector
Milestone: None1.9
Priority: undecidedhigh
Status: newopen

Here's a fiddle from gnarf: http://jsfiddle.net/QMweQ/2/

comment:2 Changed 7 years ago by mikesherov

Here's a fiddle from the Mobile bug report: http://jsfiddle.net/thayes/SQyXc/1/

comment:3 Changed 7 years ago by dmethvin

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 7 years ago by timmywil

Resolution: duplicate
Status: openclosed

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 7 years ago by dmethvin

Milestone: 1.9None
Note: See TracTickets for help on using tickets.