W3C home > Mailing lists > Public > public-webapi@w3.org > December 2006

Re: Selectors API naming

From: Jon Ferraiolo <jferrai@us.ibm.com>
Date: Wed, 20 Dec 2006 13:47:10 -0800
To: "Robert Sayre" <sayrer@gmail.com>
Cc: <public-webapi@w3.org>
Message-ID: <OF6F0E677E.BA003776-ON8825724A.0076D7EF-8825724A.0077ACF4@us.ibm.com>

Hi Robert,
FWIW - Dojo's function is actually [window.]dojo.byId() and I believe that
Yahoo's is [window.]YAHOO.util.get().


Jon Ferraiolo <jferrai@us.ibm.com>
Web Architect, Emerging Technologies
IBM, Menlo Park, CA
Mobile: +1-650-926-5865

             "Robert Sayre"                                                
             >                                                          To 
             Sent by:                  "Jim Ley" <jim@jibbering.com>       
             public-webapi-req                                          cc 
             uest@w3.org               "Chris Wilson"                      
                                       <Chris.Wilson@microsoft.com>, "Ian  
                                       Hickson" <ian@hixie.ch>, "Dave      
             12/20/2006 11:10          Massy" <dave.massy@microsoft.com>,  
             AM                        "Anne van Kesteren"                 
                                       <annevk@opera.com>, "Web API WG     
                                       (public)" <public-webapi@w3.org>    
                                       Re: Selectors API naming            

On 12/20/06, Jim Ley <jim@jibbering.com> wrote:
> No, one group of JS programmers do that, it is not representative of the
> entire industry at all

Mappings to getElementById in some popular JS libraries:

Yahoo UI: get()
Prototype.js: $()
MochiKit: $()
dojo: byId()

etc, etc.

I guess that's the nice thing about getElementsBySelector. It's like
picking 6 names all at once. :)


Robert Sayre

(image/gif attachment: graycol.gif)

(image/gif attachment: pic28349.gif)

(image/gif attachment: ecblank.gif)

Received on Wednesday, 20 December 2006 22:02:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:22 UTC