Closed (works as designed)
Project:
jQuery Update
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Jun 2008 at 19:34 UTC
Updated:
16 Jul 2008 at 02:24 UTC
Imagine a table of form fields. I've been extracting the data from these fields by using .filter("[@name^='foo']") to get a particular row, and then looping over .filter("[@name$='bar']") to get the column. With the original version of jQuery, I have to do .end().filter("[@name$='bar2']") or I get an empty set. With the updated jQuery, that .end() returns the Document, which causes the chained .filter() to be meaningless.
If this turns out to be a problem that jQuery Update isn't meant to fix, I'd love to hear an alternate solution to my problem that works with or without it.
Comments
Comment #1
Island Usurper commentedAlternate solution I thought of as soon as I hit the submit button: go ahead and use two .filter()s for every value I need instead of trying to optimize. Sounds like I forgot the first rule of software engineering.
Comment #2
sunI'm sorry, a) development on 5.x-1.0 has ended, and b) jQuery Update is not the right place to ask for support on coding jQuery.