Skip to content

0.12.0

Latest
Compare
Choose a tag to compare
@niklak niklak released this 16 Jan 14:31
· 3 commits to main since this release

Release Notes for v0.12.0 (2025-01-16) πŸš€

πŸ“š Check out examples

✨ New Features

  • NodeRef Enhancements:

    • Added NodeRef::is_match and NodeRef::is methods for checking if a node matches a given matcher (&Matcher) or selector (&str) without creating a Selection object.
    • Introduced NodeRef::find, an experimental method for finding all descendant elements matching a given path. It is significantly faster than Selection::select.
  • Tree and Document Enhancements:

    • Added Document::base_uri and NodeRef::base_uri for retrieving the base URI of a document using the href attribute of the <base> element. Inspired by Node: baseURI property.

πŸ”¨ Improvements

  • Selection:
    • Reduced usage of RefCell::borrow and RefCell::borrow_mut to simplify internal code.
  • Matches:
    • Optimized internal code to improve selection performance.

Changelog

Full Changelog: 0.11.0...0.12.0