I am writing a javascript unit test suite, and one of the features I would like to add is the ability to claim that a particular element and its children conform to a given HTML structure.
My first idea is to use jQuery (well, Sizzle) and ask users to write Zen Code for approval. My first question is: "Was this done before? Can I steal it?" If not, is there a specification printed anywhere to parse the Zen Code instruction? Are there any shortcuts I could make, given the power of Sizzle?
nickf source share