Re: ACTION-87: Selectors API

Bjoern Hoehrmann wrote:
> * Daniel Schierbeck wrote:
>   
>> Would it be possible that getElementsBySelector() could accept a hash as 
>> a second argument, as well as an XPathNSResolver, or would that be up to 
>> the individual DOM implementation?
>>     
>
> You mean like { 'html' : 'http://www.w3.org/1999/xhtml', 'svg' : ...?
Yup. A hash.

  var paragraphs = document.getElementsBySelector('xh|p', {xh: 
'http://www.w3.org/xhtml'});

(I believe it's perfectly fine to leave out the apostrophes, aight?)


Cheers,
Daniel

Received on Saturday, 25 February 2006 19:28:33 UTC