Parse an html5 document into a tree.
After parsing, errors will be populated with parse errors, if any.
Document parse() { innerHTML = null; _parse(); return tree.getDocument(); }