Skip to main content

Bug Tracker

Side navigation

#12801 closed bug (duplicate)

Opened October 29, 2012 03:47PM UTC

Closed November 12, 2012 05:06PM UTC

Last modified November 27, 2012 05:38PM UTC

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

Attachments (0)
Change History (5)

Changed October 29, 2012 03:52PM UTC by mikesherov comment:1

component: unfiledselector
milestone: None1.9
priority: undecidedhigh
status: newopen

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

Changed October 29, 2012 03:53PM UTC by mikesherov comment:2

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

Changed October 29, 2012 07:00PM UTC by dmethvin comment:3

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

Changed November 12, 2012 05:06PM UTC by timmywil comment:4

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.

Changed November 27, 2012 05:38PM UTC by dmethvin comment:5

milestone: 1.9None