Applied tidy-html pull request #98 https://github.com/w3c/tidy-html5/pull/98 to add <main>
Corrects HTML error handling