> > I disagree on the list applying accessors to only the first element. > From an API perspective I just don't see that it makes sense. I'd > much rather see a first() method or property, or better yet (as I > suggested to kangax) an explicit means of saying "give me the first > (and only the first) element that matches this CSS spec). If I see > the code "list.highlight()", I'm going to expect the highlight method > to be applied to the list, not to the first entry on the list. >
I agree with that disagreement. Although it shortens up the syntax, to me it's counter intuitive for a list to operate on the first element for item related functions. Darrin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" 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/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---
