It appears as though without accepts its values in individual parameters. Looking at the documentation it does illustrate that each value is set in as its own parameter. http://prototypejs.org/api/array/without
Looking into the source it becomes clear that it uses the function's arguments as array to purge values from, not the first argument as an array. A snippet from proto 1.6... without: function() { var values = $A(arguments); return this.select(function(value) { return !values.include(value); }); }, I'm pretty sure proto's CSS parser can handle the not pseudo selector, so you can do something like this... $$(s_CSS + ":not(.nonSpacing)"); http://www.w3.org/TR/css3-selectors/#negation -- http://positionabsolute.net On Jan 22, 12:27 pm, Richard Quadling <rquadl...@googlemail.com> wrote: > Hi. > > s_CSS = '.scrollBox > label'; > console.info($$(s_CSS)); > console.info($$(s_CSS + '.nonSpacing')); > console.info($$(s_CSS).without($$(s_CSS + '.nonSpacing'))); > > [label.nonSpacing, label, label.nonSpacing, label, label, label, > label, label.nonSpacing, label, label, label, label, label.nonSpacing, > label, label, label, label, label.nonSpacing, label, label, label, > label, label.nonSpacing, label, label, label, label, label.short, > label, label, label] > > [label.nonSpacing, label.nonSpacing, label.nonSpacing, > label.nonSpacing, label.nonSpacing, label.nonSpacing, label.short] > > [label.nonSpacing, label, label.nonSpacing, label, label, label, > label, label.nonSpacing, label, label, label, label, label.nonSpacing, > label, label, label, label, label.nonSpacing, label, label, label, > label, label.nonSpacing, label, label, label, label, label.short, > label, label, label] > > The first info shows me all the labels in the .scrollBox. > The second info shows me all the labels in the scrollBox which are nonSpacing. > The third info shows me the same as the first. The .without is NOT > working as I would expect. > > Any ideas? > > Richard. > > -- > ----- > Richard Quadling > Zend Certified Engineer :http://zend.com/zce.php?c=ZEND002498&r=213474731 > "Standing on the shoulders of some very clever giants!" --~--~---------~--~----~------------~-------~--~----~ 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 prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---