parse method

Document parse()

Parse an html5 document into a tree. After parsing, errors will be populated with parse errors, if any.

Implementation

Document parse() {
  innerHTML = null;
  _parse();
  return tree.getDocument();
}