Convert CSS selectors to XPath queries

(via Dean Edwards’s Faster DOM Queries)

I’ve only just got round to reading this: it’s great! Joe Hewitt has written some javascript which converts a CSS selector to an XPath query (source code). I searched and searched a few months back for something like this, and when I found nothing I made a note to write my own, however it seems Joe beat me to it just over a month ago.

I suppose my lesson is: I need to spend more time on code to release into the community- as I promised myself.

Tags:

Leave a Reply