Bug Tracker

Modify

Ticket #8282 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

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

comment:1 Changed 2 years ago by anonymous

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.

comment:2 Changed 2 years ago by jitter

  • Priority changed from undecided to low
  • Resolution set to duplicate
  • Status changed from new to closed
  • Component changed from unfiled to selector

comment:3 Changed 2 years ago by jitter

Duplicate of #8229.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.