- From: Daniel Schierbeck <daniel.schierbeck@gmail.com>
- Date: Sat, 25 Feb 2006 20:28:36 +0100
- 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 UTC