Hacker News new | ask | show | jobs
by Ygg2 283 days ago
Parsers can be made to not fail on first error. You return either a parsed structure or an array of found error.

Html5 parser is notoriously friendly to errors. See adoption agency algorithm.