Bug Tracker

Modify

Ticket #5508 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

IE does not allow you to use square brackets in jQuery query

Reported by: captainn Owned by: john
Priority: critical Milestone: 1.4
Component: selector Version: 1.3.2
Keywords: name query square brackets Cc:
Blocking: Blocked by:

Description

I stumbled upon a bug in IE (tested with IE 7 and IE 8), when i used a square bracket within a name query. For me it's an essential function! I attached a quick example.

Attachments

example.htm Download (365 bytes) - added by captainn 4 years ago.
quick example of bug (use IE!)
example.2.htm Download (369 bytes) - added by captainn 4 years ago.
Escaped brackets

Change History

Changed 4 years ago by captainn

quick example of bug (use IE!)

comment:1 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to worksforme

Try escaping the bracket with
per the docs.

 http://docs.jquery.com/Selectors

comment:2 Changed 4 years ago by captainn

  • Status changed from closed to reopened
  • Resolution worksforme deleted

mhh...i already read the docu and tried to escape the brackets but it did not work in ie (8)! did you try it?

Changed 4 years ago by captainn

Escaped brackets

comment:3 Changed 4 years ago by dmethvin

  • Status changed from reopened to closed
  • Resolution set to invalid

True but you didn't escape the *other* character that isn't valid in a name, the period. Please ask for help in the forums and/or read the documentation I linked to before opening tickets, thanks.

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.