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

Re: ACTION-87: Selectors API

From: Jim Ley <jim@jibbering.com>
Date: Sat, 25 Feb 2006 19:47:34 -0000
Message-ID: <001c01c63a44$537b6260$0301a8c0@Snufkin>
To: <public-webapi@w3.org>

"Daniel Schierbeck" <daniel.schierbeck@gmail.com>
>  var paragraphs = document.getElementsBySelector('xh|p', {xh: 
> 'http://www.w3.org/xhtml'});

document.selectorsSelectElements(".chicken",{ 
lookupNamespaceURI=function(str) { return {egg:"urn:chicken", 
donkey:"urn:shiny"}[str] });

Should do that...

Jim. 
Received on Saturday, 25 February 2006 19:49:53 GMT

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