0.21.0
Release Notes for 0.21.0 (2025-08-20) π
β¨ New Features
- Introduced
Tree::headandTree::bodymethods, which returnNoneif the corresponding element is absent (e.g., fragments typically lack<head>/<body>). Added equivalentDocument::headandDocument::bodymethods.
π§ Changes
- Minor refactor of
TreeNode::adjustmethod; no functional or API changes.
π Bug Fixes
- Revised
Document::create_element. Now thetemplateelement precedes itsFragment, 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()).
Full Changelog: 0.20.0...0.21.0