Loads an HTML document using HttpWebRequest or opening the file directly for a 'file' schema.
- documentUrl (Uri)
- The Url of the HTML document to be loaded.
| Exception | Condition |
|---|---|
| ArgumentNullException | The documentUrl parameter is null. |
| NotSupportedException | The Content-Type of the file is not 'text/html' or the file is too big. |
| HtmlParserException | An error is encountered during the parsing operation. |