This tutorial is the first part on how to create your own selector engine. First two parts introducing basic mechanical stuff for traversing through the DOM nodes. Third part will cover the a basic CSS based rule engine to parse out a proper token from a given CSS selector and the finally the last part will cover merging and assembling the selector parser and the mechanical engine.