Skip to main content

Bug Tracker

Side navigation

#5535 closed bug (worksforme)

Opened November 19, 2009 07:04PM UTC

Closed July 11, 2011 08:30PM UTC

Different results for attribute filter strings vs. find specifying attribute

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

See attached file for example.

<input> tags with different ids. Want to select those where user has typed in specific text.

The following returns inputs which had the value 'foo' when the page was created (unexpected).

$("#inputs input[value='foo']");

The following returns inputs which had the value 'foo' at the time of invocation (expected):

$("#inputs").find("input[value='foo']");

Attachments (1)
Change History (3)

Changed November 20, 2010 02:29PM UTC by dmethvin comment:1

status: newopen

http://jsfiddle.net/dmethvin/kxVMd/

Thanks for the analysis!

Changed March 31, 2011 04:49AM UTC by danheberden comment:2

milestone: 1.41.next

Changed July 11, 2011 08:30PM UTC by dmethvin comment:3

resolution: → worksforme
status: openclosed

Seems to work in the current jQuery.