Re: Selectors API naming

On Wed, 20 Dec 2006 14:45:56 +0100, Joao Eiras <joao.eiras@gmail.com>  
wrote:
> If you want to be accurate, the methods should be named
>
> getElementByCSSSelector
> getElementsByCSSSelector
>
> and be integrated with the CSS DOM module.

No, the Selectors specification is separate from CSS. Accurate and  
annoying naming would be:

   document.getElementByGroupOfSelectors
   document.getElementsByGroupOfSelectors


> There's one thing I don't understand ? Why returning a StaticNodelist ?

Because implementors indicated that doing live would probably not work.


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

Received on Wednesday, 20 December 2006 13:51:22 UTC