Bug Tracker

Modify

Ticket #11596 (closed bug: fixed)

Opened 13 months ago

Last modified 9 months ago

Different behavior using find() and ~ (sibling) along with ":visible" selector

Reported by: EwyynTomato Owned by: timmywil
Priority: low Milestone: 1.8
Component: selector Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:

Description

As demonstrated here:  http://jsfiddle.net/8cy7e/2/

$("div").find("~ span") actually returns something, but adding ":visible" as in $("div").find("~ span:visible") returns nothing.

  • version affected : Jquery 1.7.2 and below
  • browser affected : Chrome, Firefox, Safari (this actually ran correctly in IE9 !)
  • OS: tested on Windows 7 and LinuxMint

Change History

comment:1 Changed 12 months ago by sindresorhus

  • Priority changed from undecided to low
  • Status changed from new to open
  • Component changed from unfiled to selector

comment:2 Changed 11 months ago by timmywil

  • Owner set to timmywil
  • Status changed from open to assigned
  • Milestone changed from None to 1.next

comment:4 Changed 9 months ago by timmywil

  • Status changed from assigned to closed
  • Resolution set to fixed
  • Milestone changed from 1.next to 1.8

This was fixed in 1.8.

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.