tildeio / simple-html-tokenizer

A lightweight JavaScript library for tokenizing non-`<script>` HTML expected to be found in the `<body>` of a document
MIT License
85 stars 33 forks source link

Failure on empty tags #105

Open iskrenvankov opened 2 years ago

iskrenvankov commented 2 years ago

Hi, I ran into an issue recently using another library that is based on simple-html-tokenizer. Here is a link to the original issue: https://github.com/Hypercontext/linkifyjs/issues/370

The particular minimal failure example I can provide is the following:

Example input: Foo/Bar <> Zoo/Zar

Expected output: same as the input (no change)

Observed output: Foo/Bar <zoo></zoo>