// An html parser written in JavaScript // Based on http://ejohn.org/blog/pure-javascript-html-parser/