Re: Selectors API naming

On Fri, 15 Dec 2006 07:58:03 +0100, Ian Hickson <ian@hixie.ch> wrote:
> My only concern here is that we avoid the mistake that was made with
> getElementsByTagName and getElementById -- the names should be easy to
> type and short. I honestly think that if the one-item method is shorter
> than about 6 or 7 characters, then we've made a mistake.

You mean longer than?


> So I think "matchSelector" is too long. I think "matchSingle" is too  
> long. I think "select" and "match" are fine.

I'd love to use "select"...


> It doesn't matter what the words actually are. I think "aaaaa" is fine
> too (though it wouldn't be my first choice). As Maciej points out, we  
> just have to make sure we don't pick a name that makes everyone just  
> alias the
> method to $ or $$ or something equivalent.

Yeah, I agree with this.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Friday, 15 December 2006 11:00:07 UTC