Re: Selectors API naming

"Chris Wilson" <Chris.Wilson@microsoft.com>

Not that I'm overly energised with naming, but...

>As Martijn said, I believe people will map document.matchAll almost as
>often to $$ as document.getElementsBySelector - so I'd much rather stick
>with the pattern, and presume that if developers want to map to a()
>they'll do it.

I agree with this view entirely.  getSomething is a pattern worth keeping 
for developer sanity.

>>existing functionality, "document.all". Would "select()" be ok with
>you?
>
>Actually, I'd presume "document.select()" would select the document
>itself into some context (e.g., it would activate the document, make its
>tab the selected one, etc.).

I agree with this too, .select() is too much like .focus() and gives in mind 
completely different class of functionality.

Cheers,

Jim. 

Received on Wednesday, 20 December 2006 18:25:06 UTC