Bug Tracker

Modify

Ticket #5546 (closed bug: worksforme)

Opened 4 years ago

Last modified 3 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 4 years ago.
test case

Change History

Changed 4 years ago by bradcupit

test case

comment:1 Changed 4 years ago by bradcupit

confirmed this bug still exists in jQuery 1.4

comment:2 Changed 3 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 3 years ago by bradcupit

excellent, fixed!

Version 0, edited 3 years ago by bradcupit (next)

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.