title: Reverse Zen Coding
body: <p>I'm writing a JavaScript unit test suite and one of the features I'd like to add is the ability to assert that a certain element and its children match a given HTML structure.</p>
  <p>My first idea is to use jQuery (well, Sizzle) and ask that users write <a href="http://code.google.com/p/zen-coding/" rel="nofollow noreferrer">Zen Code</a> statements to make assertions. My first question is <em>&quot;Has this been done before? Can I steal it?&quot;</em>. If not, is there a specification printed anywhere for how to parse a Zen Code statement? Are there any shortcuts I could make, given the power of Sizzle?</p>