#html-parser #tokenizer #tags #error #automatic #browser #web

rs_html_parser_tokenizer_tokens

Rs Html Parser Tokens

3 releases

0.0.6 Nov 26, 2023
0.0.5 Nov 26, 2023
0.0.2 Nov 26, 2023

#71 in #tokenizer

Download history 3/week @ 2023-12-18 71/week @ 2023-12-25 4/week @ 2024-01-01 9/week @ 2024-01-08 7/week @ 2024-02-19 35/week @ 2024-02-26 76/week @ 2024-03-04 23/week @ 2024-03-11 3/week @ 2024-03-18 9/week @ 2024-03-25 32/week @ 2024-04-01

73 downloads per month
Used in 3 crates

MIT license

2KB

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

No runtime deps