Skip to main content

Bug Tracker

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

Attachments (1)
Change History (3)

Changed August 24, 2010 02:41PM UTC by checat comment:1

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).

Changed October 15, 2010 04:25AM UTC by snover comment:2

priority: → undecided
resolution: → duplicate
status: newclosed

Changed October 15, 2010 04:25AM UTC by snover comment:3

Duplicate of #7128.