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

Re: ACTION-87: Selectors API

From: Daniel Schierbeck <daniel.schierbeck@gmail.com>
Date: Sat, 25 Feb 2006 20:28:36 +0100
Message-ID: <4400AFE4.6000003@gmail.com>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
CC: public-webapi@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:53 GMT