Skip to main content

Bug Tracker

Side navigation

#3840 closed bug (fixed)

Opened January 14, 2009 01:56AM UTC

Closed January 21, 2009 11:00PM UTC

Last modified March 14, 2012 10:52PM UTC

Class name selector broken with capital letters on Safari Version 3.1.2 (5525.20.1)

Reported by: adamfisk Owned by: john
Priority: undecided Milestone: 1.3.1
Component: selector Version: 1.3
Keywords: selector Cc:
Blocked by: Blocking:
Description

With 1.3 RC2 I can't select by class name if the class name contains capital letters. This works:

$("#ALLCAPS")

This doesn't:

$(".ALLCAPS")

Both work in FF.

This worked in 1.2.6.

Attachments (1)
  • jquery13Rc2SelectorTest.html (1.0 KB) - added by adamfisk January 14, 2009 01:57AM UTC.

    quick test that let's you switch between new and old jquery versions

Change History (4)

Changed January 15, 2009 02:16PM UTC by john comment:1

milestone: 1.31.3.1
version: 1.2.61.3

This only happens in pages that don't have a correct doctype (pushing them into quirks mode). Regardless I'd like to try and do something here to provide an alternative on our end.

Changed January 15, 2009 04:50PM UTC by ikuzgun comment:2

I've same problem, where can I download fixed version?

Changed January 16, 2009 06:03AM UTC by SidneySM comment:3

Safari's implementation of querySelectorAll is case-insensitive in quirks mode (returns all case variations on selector) but only accepts lower case input. Can we test for querySelectorAll's case sensitivity and respond appropriately (toLowerCase'ing the selector before passing it)?

New WebKit builds behave correctly (are totally case-insensitive in quirks mode). I filed a bug (rdar://problem/6501740) with Apple, and it'll be fixed some day. Don't expect it to be soon, though.

Changed January 21, 2009 11:00PM UTC by john comment:4

resolution: → fixed
status: newclosed

Fixed in SVN rev [6150].