Skip to main content

Bug Tracker

Side navigation

#4023 closed bug (fixed)

Opened January 29, 2009 10:17AM UTC

Closed February 16, 2009 03:36PM UTC

"+" 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:

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".



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

<script type='text/javascript'>



$("div.t").find("+div").css("border", "1pt solid red");






<div>First section</div>

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

<div>Third section</div>


Attachments (0)
Change History (2)

Changed January 30, 2009 01:02AM UTC by dmethvin comment:1

component: coreselector
owner: → john

Changed February 16, 2009 03:36PM UTC by john comment:2

resolution: → fixed
status: newclosed

Fixed in SVN rev [6209].