I've finally got around to implementing an idea I had ages ago: document.getElementsBySelector:

http://simon.incutio.com/archive/200...entsBySelector

It's a javascript function that allows you to grab an array of elements based on a CSS selector - for example, document.getElementsBySelector('div#main p a.external') returns all links with class="external" that are inside paragraphs inside a div id="main".

I've tested it on Phoenix and IE6 and it works fine - feedback on other browsers it works with would be great.

Cheers,

Simon