#5020 closed bug (duplicate)
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)
Change History (8)
Changed 13 years ago by
comment:1 Changed 13 years ago by
Adding ^[^]]
at the start of CLASS regexp seems to solve the problem.
original: CLASS: /\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/ fixed: CLASS: /^[^[]*\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/
comment:2 Changed 12 years ago by
Keywords: | needsreview attribute selector filter added |
---|---|
Milestone: | 1.4 |
Status: | new → open |
Version: | 1.3.2 → 1.4.3 |
Reproduced here: Live Test Case. It would appear that this broke in jQuery 1.3.2 and has been broken since then.
comment:3 Changed 12 years ago by
Keywords: | needsreview removed |
---|
comment:5 Changed 12 years ago by
Milestone: | → 1.next |
---|
See : http://jsfiddle.net/danheberden/XmymL/1/ from #6233
comment:6 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | open → closed |
Note: See
TracTickets for help on using
tickets.
example html