Parser: You can now parse HTML fragments with the new ParserStream feature, enhancing your ability to handle partial HTML content seamlessly.
CommonJS Support: The parse5 module now includes a CommonJS export, making it easier to integrate with various JavaScript environments.
Improvements
Parser: The parsing behavior for foreign content is updated to align with the latest specifications, ensuring more accurate HTML parsing.
Serializer: The serializer is improved to handle mixed content and includes a new serializeOuter method, enhancing the way you can serialize HTML elements.
Fixes
Fix: The serializer now correctly serializes void elements as empty strings, addressing issues with how void elements were previously handled.
Fix: The parser now retains the end locations for html and body tags, improving the accuracy of location information during parsing.
Others
Documentation: The documentation has been updated to include new links and information about the <template> tag, providing better guidance for users.