This makes it easy to extract data embedded in JavaScript code using XPath in a way more robust than just using regular expressions. Use calmjs.parse instead of slimit for JavaScript parsing ...
htmlparser2 is the fastest HTML parser, and takes some shortcuts to get there. If you need strict HTML spec compliance, have a look at parse5.