Parser: Enjoy improved handling of special close tags like </p> and </br>, which now correctly imply open tags, enhancing the parsing accuracy of your HTML documents.
Parser: Experience the new support for ECMAScript Modules (ESM) and stricter TypeScript checks, ensuring better compatibility and type safety in your projects.
Improvements
Parser: Benefit from a refactored tokenizer that now passes indices instead of concatenated strings, leading to faster performance and reduced memory usage.
Parser: The tokenizer now efficiently decodes code points, eliminating the need for previous workarounds related to surrogate pairs, which enhances overall parsing reliability.
Fixes
Resolve the issue where the handling of misnested formatting tags did not align with standard HTML behavior, ensuring your HTML is parsed as expected.
Others
Update the README to guide users towards using parse5 for HTML5 compliance, helping them make informed decisions based on their needs.