Bug Tracker

Modify

Ticket #8824 (closed bug: invalid)

Opened 2 years ago

Last modified 2 years ago

Selector is now unrecognized

Reported by: abel.tamayo@… Owned by: abel.tamayo@…
Priority: undecided Milestone: 1.next
Component: selector Version: 1.5.2
Keywords: Cc:
Blocking: Blocked by:

Description

I have found this error in Firefox 3.6 under Ubuntu:

using jQuery 1.4.2 this selector works: jQuery('select[name=[time]]') but after updating to jQuery 1.5.2 it rises the following error: uncaught exception: Syntax error, unrecognized expression: [name=[time]]

I'm pretty sure it's jQuery's version the only problem here because if I switch back to 1.4.2 it works again.

Hope this helps.

Change History

comment:1 Changed 2 years ago by addyosmani

  • Owner set to abel.tamayo@…
  • Status changed from new to pending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced test case on  http://jsFiddle.net that reproduces the issue experienced to help us assess your ticket!

Additionally, test against the jQuery (edge) version to ensure the issue still exists.

comment:2 Changed 2 years ago by timmywil

  • Status changed from pending to closed
  • Resolution set to invalid
  • Component changed from unfiled to selector

Even though it worked in jQuery 1.4.2, that is an invalid selector. This has been fixed in jQuery 1.5. Use quotes instead of brackets to check the value of an attribute:  http://api.jquery.com/attribute-equals-selector/

Last edited 2 years ago by timmywil (previous) (diff)

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.