Hi kangax, Thanks for your response. I went to the bug tracker and find the bug here with a patch to fix it !
http://prototype.lighthouseapp.com/projects/8886/tickets/244-element-adjacent-can-select-siblings-childnodes-and-shouldn-t Everything is under control :) JP On Sep 5, 3:39 pm, kangax <[EMAIL PROTECTED]> wrote: > On Sep 5, 2:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > It's working, thanks you. My version was way more complicated: > > > $('dd1').up('dl').childElements().select(function(elt) { return > > elt.tagName == 'DD';}).without($('dd1')) > > > But it worked too. > > > I will update my code with your version. Should I report the bug > > somewhere to be sure that the core developer team is aware of it ? > > Please file a bug athttp://prototype.lighthouseapp.com/projects/ > We'll look into it. > > > > > And finally, how can we learn about the Selector class ? I didn't know > > it and I couldn't find it in the API doc... > > Some parts of the documentation are outdated and some are not > complete. `grep` just happens to delegate its filtering to `match` > method of an iterable object (if such method exists). This delegation > is what makes passing a Selector instance useful (as it provides a > "public" `match` method). > > -- > kangax --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---