You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the attributes, I'd prefer extend_attributes(iter) to consume an iterator (a-la Vec).
A push_attribute could be useful too (could be internally used by the extend version) because one does not always have an iterator at hand.
Instead of Element::new(name, attributes), we could do separate the text and attributes part:
This way, no need to pass an empty iterator for elements where attributes don't make sense (text or comment).
I would also change the Element::new to use an AsRef<[u8]> for the name, to allow faster/easier creation of elements from existing ones.
The text was updated successfully, but these errors were encountered: