Bug Tracker

Opened 10 years ago

Closed 10 years ago

#5508 closed bug (invalid)

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:
Blocked by: Blocking:

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 (2)

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

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by captainn

Attachment: example.htm added

quick example of bug (use IE!)

comment:1 Changed 10 years ago by dmethvin

Resolution: worksforme
Status: newclosed

Try escaping the bracket with
per the docs.

http://docs.jquery.com/Selectors

comment:2 Changed 10 years ago by captainn

Resolution: worksforme
Status: closedreopened

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 10 years ago by captainn

Attachment: example.2.htm added

Escaped brackets

comment:3 Changed 10 years ago by dmethvin

Resolution: invalid
Status: reopenedclosed

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.

Note: See TracTickets for help on using tickets.