Modify ↓
Ticket #8282 (closed bug: duplicate)
Attribute Selectors Without Quotes Stopped Working
| Reported by: | stephen@… | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | selector | Version: | 1.5 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
I recently upgraded an app from jQuery 1.4.2 to jQuery 1.5.0. I was using a query like the following:
$('[name=some[field]]')
This stopped working with a syntax error when I used 1.5. I was able to get the query to work with:
$('[name="some[field]"]')
Both queries work in 1.4.2, but the top one fails in 1.4.4 and 1.5.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

1.4.2 Test: http://jsfiddle.net/UeMcq/
1.4.4 Test: http://jsfiddle.net/EZ96m/
1.5.0 Test: http://jsfiddle.net/xty4s/
All tests done in Google Chrome 9.0.597.98.