Validate HTML5.
Go beyond matching tags.
Handle optional end tags, void elements, and the subtleties of self-closing syntax.
- Input
- A UTF-8 HTML document
- Output
trueorfalse- The challenge
- Stay correct across known edge cases and freshly generated documents.