Bug Tracker

Ticket #5546 (closed bug: worksforme)

Opened 5 years ago

Last modified 4 years ago

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

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

find_test.html Download (1.3 KB) - added by bradcupit 5 years ago.
test case

Change History

Changed 5 years ago by bradcupit

test case

comment:1 Changed 5 years ago by bradcupit

confirmed this bug still exists in jQuery 1.4

comment:2 Changed 4 years ago by rwaldron

  • Priority changed from minor to low
  • Status changed from new to closed
  • Resolution set to worksforme
  • Milestone changed from 1.4 to 1.4.4

This issue no longer exists

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

comment:3 Changed 4 years ago by bradcupit

excellent, fixed!

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