6 releases

0.0.10 Jan 9, 2024
0.0.9 Jan 9, 2024
0.0.8 Dec 25, 2023
0.0.6 Nov 26, 2023

#43 in #compatible

MIT license

110KB
1.5K SLoC

Very compatible HTML tokenizer and parser.

Differences to HTML specification.

  • Errors are not thrown for invalid input
  • Just like web browsers, this parser automatically handles missing closing tags
  • <? and <! always opens a new processing instruction
  • Orphan end tags are ignored ( This might still change )

Notes:

  • According to the spec attribute handling is case-insensitive

Dependencies

~9–20MB
~276K SLoC