Skip to main content

Bug Tracker

Side navigation

#5020 closed bug (duplicate)

Opened August 06, 2009 11:55AM UTC

Closed July 11, 2011 07:50PM UTC

Last modified July 11, 2011 07:50PM UTC

Attribute selector with filter fails

Reported by: maciekj Owned by: john
Priority: major Milestone: 1.next
Component: selector Version: 1.4.3
Keywords: attribute selector filter Cc:
Blocked by: Blocking:
Description

Attribute selector combined with filter fails in 1.3.2 when attribute value contains dot.

However it works in 1.2.6.

Code to run on example (attached) html:

$("[name='group.phones[0].number']:visible")

expected: 1 element

got 0 elements

Attachments (1)
  • test.html (0.4 KB) - added by maciekj August 06, 2009 11:55AM UTC.

    example html

Change History (7)

Changed August 07, 2009 07:50AM UTC by maciekj comment:1

Adding

^[^]]
at the start of CLASS regexp seems to solve the problem.

   original: CLASS: /\\.((?:[\\w\\u00c0-\\uFFFF_-]|\\\\.)+)/
   fixed:    CLASS: /^[^[]*\\.((?:[\\w\\u00c0-\\uFFFF_-]|\\\\.)+)/

Changed October 28, 2010 04:47AM UTC by addyosmani comment:2

keywords: → needsreview attribute selector filter
milestone: 1.4
status: newopen
version: 1.3.21.4.3

Reproduced here: Live Test Case. It would appear that this broke in jQuery 1.3.2 and has been broken since then.

Changed November 11, 2010 01:33AM UTC by dmethvin comment:3

keywords: needsreview attribute selector filterattribute selector filter

Changed March 31, 2011 04:59AM UTC by danheberden comment:4

#6233 is a duplicate of this ticket.

Changed March 31, 2011 05:00AM UTC by danheberden comment:5

milestone: → 1.next

Changed July 11, 2011 07:50PM UTC by john comment:6

resolution: → duplicate
status: openclosed

Changed July 11, 2011 07:50PM UTC by john comment:7

Duplicate of #4740.