The closest I've found to this is John Resig's HTML parser, but that seems to be more about fixing HTML and converting it to XML.
So is there something out there already? And if not, how difficult (and lengthy) would it be to adapt John Resig's parser?
No, there isn't one. However I am writing one: https://github.com/peterjwest/html_validator
©2020 All rights reserved.