[jQuery] Re: about :not(:last)

2009-02-03 Thread Garito
is no 'semantic' in them. Maybe this could be > improved, but that would be a change in syntax, not a 'bug > correction'. > > Again, that's what slice() is for, slicing the array of elements as > you wish. > > cheers, > - ricardo > > On Feb 3,

[jQuery] Re: about :not(:last)

2009-02-02 Thread Garito
':not(:first)').map(function > () { >       return $(".Texto:first", $(this)).text(); > > } > > Or use slice() instead as I posted before, that will be much faster as > you're just slicing the array without dealing with elements/selectors. > > va

[jQuery] Re: about :not(:last)

2009-02-02 Thread Garito
A element can only contain > inline elements, certainly not divs and other definition lists. Nested > definition lists make no sense! I couldn't find the problem. > > Try $(this).parents('dl').slice(1) or $(this).parents('dl').slice > (0,-1), that will probab

[jQuery] Re: about :not(:last)

2009-02-01 Thread Garito
ml. > > Seems to work fine here. Could you post a complete test page showing > this issue? > > - ricardo > > On Feb 1, 1:25 pm,Garito wrote: > > > Hi! > > Please, consider this code: > > > $.fn.url2 = functi

[jQuery] about :not(:last)

2009-02-01 Thread Garito
Hi! Please, consider this code: $.fn.url2 = function(absoluta) { var slots = $(this).parents('dl:not(:last)').map(function() { return $(".Texto:first", $(this)).text(); }); var slots2 = $(this).parents('dl').map(function() {