dom_query 0.27.0 (2026-03-17)
New Features
- Introduced
Tree::new_element_qualname, allowing creation of elements with a specifichtml5ever::QualName.
Changes
- Improved performance of
Element::add_classfor both empty and existingclassattributes. - Optimized
Element::remove_classusing aVec-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.
Full Changelog: 0.26.0...0.27.0