Bug Tracker

Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#5546 closed bug (worksforme)

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 8 years ago.
test case

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by bradcupit

Attachment: find_test.html added

test case

comment:1 Changed 8 years ago by bradcupit

confirmed this bug still exists in jQuery 1.4

comment:2 Changed 7 years ago by Rick Waldron

Milestone: 1.41.4.4
Priority: minorlow
Resolution: worksforme
Status: newclosed

This issue no longer exists

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

comment:3 Changed 7 years ago by bradcupit

excellent, fixed!

Version 0, edited 7 years ago by bradcupit (next)
Note: See TracTickets for help on using tickets.