dojo.query: A CSS Query Engine
Written by on February 5th, 2007 in Ajax News.
Through the push of jQuery, MochiKit, Prototype, and behavior.js and most recently DomQuery, we are seeing boundaries tested and built upon.
Alex Russell (Dojo and SitePen) has written a fascinating piece on the performance of CSS query engines as he introduces us all to dojo.query the latest in the pack, and one that looks to start well out of the gate.
Alex goes into great detail on the reasoning behind dojo.query, shows performance comparisons between browsers and toolkits (well done Opera and WebKit nightly) and shows us the API (simple):
-
-
// include the system
-
dojo.require(’dojo.query’);
-
-
// run some queries
-
dojo.query(’#id’);
-
dojo.query(’div:first-child’);
-
dojo.query(’code.example’);
-
dojo.query(’.example’);
-
I would recommend taking a peek at this great work.
Source: Ajaxian
Original Article: http://ajaxian.com/archives/dojoquery-a-css-query-engine