Few more comments added.
Bugfix - `</h1>` is now correctly parsed as HTML inline.
Whitespaces are parsed while reading the data so no need to call IsWhiteSpace()
Inlining some character tests.
Added test for the </h1> bugfix.