Bug Tracker

Opened 14 years ago

Closed 14 years ago

#4023 closed bug (fixed)

"+" combinator and ":visible" misbehaving?

Reported by: jsycamore Owned by: john
Priority: minor Milestone: 1.3.2
Component: selector Version: 1.3.1
Keywords: :visible + Cc:
Blocked by: Blocking:

Description

In the following sample code, the result should be that only "section 3" has a yellow background, red border & blue text. But for IE and Firefox that's not the case. Chrome gets the "+" right, but overselects with the ":visible".

<html> <head> <script type='text/javascript' src="jquery.js"></script> <script type='text/javascript'>

$(function(){

$("div.t+div").css("background","yellow"); $("div.t").find("+div").css("border", "1pt solid red"); $("div.t+div:visible").css("color","blue");

});

</script> </head> <body>

<div>First section</div> <div class=t>Second section</div> <div>Third section</div>

</body>

Change History (2)

comment:1 Changed 14 years ago by dmethvin

Component: coreselector
Owner: set to john

comment:2 Changed 14 years ago by john

Milestone: 1.31.3.2
Resolution: fixed
Status: newclosed
Version: 1.31.3.1

Fixed in SVN rev [6209].

Note: See TracTickets for help on using tickets.