Hi John,

I think this is a problem with the sibling optimization I made. It
fails when the searched element is in the checkSet.
In dirNode and dirNodeCheck the following if:

                        if ( sibDir && elem.nodeType === 1 ) {
                                elem.sizcache = doneName;
                                elem.sizset = i;
                        }

should be removed.

--Fabio


On Mon, Mar 30, 2009 at 3:58 PM, John Resig <[email protected]> wrote:
>
> Actually, I think this one was already fixed.
>
> Can you test it real quick?
> http://code.jquery.com/nightlies/jquery-2009-03-26.js
>
> --John
>
>
>
> On Mon, Mar 30, 2009 at 8:24 AM, yodza <[email protected]> wrote:
>>
>> Hi,
>>
>> 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>
>>
>> >
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to