Skip to main content

Bug Tracker

Side navigation

#4451 closed bug (duplicate)

Opened March 30, 2009 12:40PM UTC

Closed October 08, 2009 05:32AM UTC

Sibling selector in 1.3.2

Reported by: yodza Owned by: john
Priority: major Milestone: 1.3.2
Component: selector Version: 1.3.2
Keywords: sibling Cc:
Blocked by: Blocking:
Description

From 1.3.1 to 1.3.2 sibling selector does not work anymore:

http://jquery.nodnod.net/cases/277

<script>

$(document).ready(function() {

module("Sibling in jquery-1.3.2");

test("Sibling filter", function() {

var length = jQuery("li.selected").siblings("li").length;

equals(length, 2, "sibling filter length");

});

test("Sibling selector", function() {

var length = jQuery("li.selected ~ li").length;

equals(length, 2, "sibling selector length");

});

});

</script>

<ul>

<li class="selected">ichi</li>

<li>ni</li>

<li>san</li>

</ul>

Attachments (0)
Change History (1)

Changed October 08, 2009 05:32AM UTC by john comment:1

resolution: → duplicate
status: newclosed

Duplicate of #4243.