Bug Tracker

Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#3840 closed bug (fixed)

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 (994 bytes) - added by adamfisk 11 years ago.
quick test that let's you switch between new and old jquery versions

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by adamfisk

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

comment:1 Changed 11 years ago by john

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.

comment:2 Changed 11 years ago by ikuzgun

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

comment:3 Changed 11 years ago by SidneySM

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.

comment:4 Changed 11 years ago by john

Resolution: fixed
Status: newclosed

Fixed in SVN rev [6150].

Note: See TracTickets for help on using tickets.