Bug Tracker

Modify

Ticket #5535 (closed bug: worksforme)

Opened 3 years ago

Last modified 23 months ago

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:
Blocking: Blocked by:

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

test_jquery_attribute_filter.html Download (2.0 KB) - added by MarkE 3 years ago.
Example code. Follow instructions in document to see bug.

Change History

Changed 3 years ago by MarkE

Example code. Follow instructions in document to see bug.

comment:1 Changed 2 years ago by dmethvin

  • Status changed from new to open

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

Thanks for the analysis!

comment:2 Changed 2 years ago by danheberden

  • Milestone changed from 1.4 to 1.next

comment:3 Changed 23 months ago by dmethvin

  • Status changed from open to closed
  • Resolution set to worksforme

Seems to work in the current jQuery.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.