Side navigation
#6939 closed bug (duplicate)
Opened August 24, 2010 02:31PM UTC
Closed October 15, 2010 04:25AM UTC
Last modified March 09, 2012 02:07AM UTC
find() works incorrectly with attribute selectors
Reported by: | checat | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.4.3 |
Component: | selector | Version: | 1.4.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
jQuery('.item img[src^=nav]')
and
jQuery('.item').find('img[src^=nav]')
give different results.
"find" looks into "img.src" and matches with full URL, while "jQuery" looks into original attribute value.
#5810 may be related to it
In jQuery-bug-find.html first 8 lines of report show correct use of "img src" original attribute (I assume, via getAttribute('src')) which contains relative URL, but last 3 lines show access to full URL (I assume, via .src property).