Bug Tracker

Opened 11 years ago

Closed 10 years ago

#11596 closed bug (fixed)

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


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 (4)

comment:1 Changed 11 years ago by sindresorhus

Component: unfiledselector
Priority: undecidedlow
Status: newopen

comment:2 Changed 11 years ago by timmywil

Milestone: None1.next
Owner: set to timmywil
Status: openassigned

comment:4 Changed 10 years ago by timmywil

Milestone: 1.next1.8
Resolution: fixed
Status: assignedclosed

This was fixed in 1.8.

Note: See TracTickets for help on using tickets.