#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)
Change History (5)
Changed 14 years ago by
Attachment: | jquery13Rc2SelectorTest.html added |
---|
comment:1 Changed 14 years ago by
Milestone: | 1.3 → 1.3.1 |
---|---|
Version: | 1.2.6 → 1.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:3 Changed 14 years ago by
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.
quick test that let's you switch between new and old jquery versions