Skip to main content

Bug Tracker

Side navigation

#5546 closed bug (worksforme)

Opened November 24, 2009 09:34PM UTC

Closed October 27, 2010 10:07PM UTC

Last modified April 19, 2011 12:26AM UTC

find does not work with two sets of brackets in attribute selector

Reported by: bradcupit Owned by: john
Priority: low Milestone: 1.4.4
Component: selector Version: 1.3.2
Keywords: find bracket brackets attribute selector Cc:
Blocked by: Blocking:
Description

the find() method does not work when using an attribute selector to find a value with two sets of brackets:

obj.find("input[name='parent[0].child[0]']")

strangely enough, one set of brackets works:

obj.find("input[name='parent[0].something']")

escaping does not solve the problem. The workaround it to use the jQuery method rather than the find method.

See attached test case.

Attachments (1)
  • find_test.html (1.3 KB) - added by bradcupit November 24, 2009 09:34PM UTC.

    test case

Change History (3)

Changed January 16, 2010 03:51PM UTC by bradcupit comment:1

confirmed this bug still exists in jQuery 1.4

Changed October 27, 2010 10:07PM UTC by rwaldron comment:2

milestone: 1.41.4.4
priority: minorlow
resolution: → worksforme
status: newclosed

This issue no longer exists

http://jsfiddle.net/rwaldron/GUwm8/1/

Changed April 19, 2011 12:26AM UTC by bradcupit comment:3

_comment0: excellent, fixed!1303172806884331

excellent, fixed!

Thank you!