0.6.0
[0.6.0] - 2024-10-19
Changed
- Exposed
Document::tree. Selectionmethods that required&mutnow doesn't require&mut.- Changed the project structure, now modules are divided based on the
structimplementations.
Added
- Added
Node::append_htmlandNode::set_htmlmethods for creating children nodes of a single selected node. - Added
Tree<NodeData>::new_element, an easy way to create an empty element with a given name. - Added
NodeRef::last_child. - Added
Node::has_attrmethod, which returnstrueif an attribute exists on the node element.
Selection::has_attrdoes the same thing for the first node inside selection. - Added
Node::remove_all_attrsmethod for removing all attributes of a node.
Selection::remove_all_attrsdoes the same thing for the every node inside selection. - Added
Node::remove_attrsmethod, a convenient way to remove multiple attributes from the node element.
Selection::remove_attrsdoes the same thing for the every node inside selection. - Added
Node::renamemethod, which allows to change node's name.
Selection::renamedoes the same thing for the every node inside selection.
Full Changelog: 0.5.0...0.6.0