Release Notes for v0.12.0 (2025-01-16) π
π Check out examples
β¨ New Features
-
NodeRef Enhancements:
- Added
NodeRef::is_match
andNodeRef::is
methods for checking if a node matches a given matcher (&Matcher
) or selector (&str
) without creating aSelection
object. - Introduced
NodeRef::find
, an experimental method for finding all descendant elements matching a given path. It is significantly faster thanSelection::select
.
- Added
-
Tree and Document Enhancements:
- Added
Document::base_uri
andNodeRef::base_uri
for retrieving the base URI of a document using thehref
attribute of the<base>
element. Inspired by Node: baseURI property.
- Added
π¨ Improvements
- Selection:
- Reduced usage of
RefCell::borrow
andRefCell::borrow_mut
to simplify internal code.
- Reduced usage of
- Matches:
- Optimized internal code to improve selection performance.
Full Changelog: 0.11.0...0.12.0