Hey there,

I noticed there is a bug with the next general sibling selector "~".  
It's been there since at least jQuery 1.3.2, and is still present in  
Revision 6582 from two days ago. I remember seeing a bug reported  
about this a while ago, but I can't seem to find it anymore.

It's tricky to pin down where it works and where it doesn't, but  
basically if the expression is the argument of a method such as find()  
or children() and the selectors before and after the combinator match,  
it fails.

So, these fail:

$('p').find('strong ~ strong');
$('div').find('code ~ code');

But these pass:

$('p').find('strong ~ code');
$('div').find('code ~strong');
$('strong ~ strong');

I put together a little set of tests using QUnit:

http://test.learningjquery.com/selector-bug/

I'm wondering if anyone else might have more luck than I've had  
tracking down the report in Trac. If not, should I file this as a bug?

Also, in recent SVN versions the siblings() method has been failing  
tests in the main jQuery test suite. (I think it's happening somewhere  
in the map function).

Let me know if there is anything else I can do to help with this.

thanks,

--Karl

____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com





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

Reply via email to