JSHinting.
Detect doctype and create it. Work only on IE9+.
Added UMD (use jsdom with nodejs). Dropped IE8- support. Dropped HtmlToXML function. HTMLParser will now be available through HTMLToDOM.Parser.
Added first test. Made parser trim trailing spaces,\n,\t,\r.