Creates a new instance and parses the given XHTML or HTML string.
The XHTML or HTML string to parse.
The path to the file (used for error reporting).
Parse the string as a HTML document. Don't try to parse the string as XHTML.
Get the parsed document if it was parsed successfully.
Get parser errors if any was encountered.
Get the XML header for the parsed document.
If the document was parsed as a HTML document.
If the document was parsed as a XHTML document.
Generated using TypeDoc
Tries parsing an XHTML string as a modern XHTML5 string, also removes XML styling properties and XSLT references
If document is not valid XML, it tries parsing it as HTML5