Closed trrk closed 2 years ago
seems like a small logic error in the parser when reconstructing the range of bytes after reading the closing tag.
skipping the final >
token happens at the end of the function, after slicing:
https://github.com/y21/tl/blob/1b42467eb8afd7bf89cc9636b7823c03ef0a87fe/src/parser/base.rs#L242
https://github.com/y21/tl/blob/1b42467eb8afd7bf89cc9636b7823c03ef0a87fe/src/parser/base.rs#L269
this should happen right after reading the identifier following </
, before doing the slicing
published 0.7.3 to crates.io with a fix for this.
Thank you, 0.7.3 works fine.
I was using tl and found a behavior that might be strange. HTMLTag::raw seems to return incomplete bytes. The last character
>
is missing.