Skip to content

0.21.0

Choose a tag to compare

@niklak niklak released this 20 Aug 09:59
· 179 commits to main since this release

Release Notes for 0.21.0 (2025-08-20) πŸš€

✨ New Features

  • Introduced Tree::head and Tree::body methods, which return None if the corresponding element is absent (e.g., fragments typically lack <head>/<body>). Added equivalent Document::head and Document::body methods.

πŸ”§ Changes

  • Minor refactor of TreeNode::adjust method; no functional or API changes.

πŸ› Bug Fixes

  • Revised Document::create_element. Now the template element precedes its Fragment, allowing HTML trees with templates to be merged more predictably.
  • Skip merging trees (and all related operations) when the main tree is empty (e.g., a document created via Document::default()).

Examples

Changelog

Full Changelog: 0.20.0...0.21.0