Skip to main content

Bug Tracker

Side navigation

#5508 closed bug (invalid)

Opened November 13, 2009 08:11AM UTC

Closed November 16, 2009 11:44PM UTC

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.2.htm (0.4 KB) - added by captainn November 16, 2009 07:16AM UTC.

    Escaped brackets

  • example.htm (0.4 KB) - added by captainn November 13, 2009 08:12AM UTC.

    quick example of bug (use IE!)

Change History (3)

Changed November 14, 2009 10:05PM UTC by dmethvin comment:1

resolution: → worksforme
status: newclosed

Try escaping the bracket with \\\\ per the docs.

http://docs.jquery.com/Selectors

Changed November 16, 2009 07:16AM UTC by captainn comment:2

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 November 16, 2009 11:44PM UTC by dmethvin comment:3

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.