Skip to content

dom_query 0.27.0 (2026-03-17)

Choose a tag to compare

@niklak niklak released this 17 Mar 15:04
· 20 commits to main since this release

New Features

  • Introduced Tree::new_element_qualname, allowing creation of elements with a specific html5ever::QualName.

Changes

  • Improved performance of Element::add_class for both empty and existing class attributes.
  • Optimized Element::remove_class using a Vec-based approach, preserving the original class order while improving performance.

Bug Fixes

  • Fixed an incorrect namespace in Tree::new_element. Previously, manually created void elements could serialize with closing tags due to the wrong namespace. Elements created during HTML parsing were not affected.

Examples

Changelog

Full Changelog: 0.26.0...0.27.0