Parses the string as an HTML Document
The HTML string to parse as a Document.
The path to the file. Used for error reporting.
Parses the string as an XHTML Document
The XHTML string to parse as a Document.
The path to the file. Used for error reporting.
Parses the string as an XML Document
The XML string to parse as a Document.
The path to the file. Used for error reporting.
Generated using TypeDoc
Contains methods to parse html and xml string into Document instances. The browser's default DOMParser returns a Document regardless if the source string is valid or not. The methods in this class detects for parsing errors and throws exceptions if any parsing error occurs.