I'm using this (alongside https://crates.io/crates/xml-rs) to write a converter from HTML to XHTML. When writing tests it's nice to be able to write an HTML file (which gets read) and the XHTML equivalent we expect to come out.
For any tests that exercise attribute parsing I'm having to sort attributes during conversion to get deterministic results, but that still means I have to reorder attributes in my XHTML files to match alphabetical order.
It'd be really nice if this library preserved ordering. There's a commit in #40 that seems to address this, and there's also https://crates.io/crates/ordermap.
I'm using this (alongside https://crates.io/crates/xml-rs) to write a converter from HTML to XHTML. When writing tests it's nice to be able to write an HTML file (which gets read) and the XHTML equivalent we expect to come out.
For any tests that exercise attribute parsing I'm having to sort attributes during conversion to get deterministic results, but that still means I have to reorder attributes in my XHTML files to match alphabetical order.
It'd be really nice if this library preserved ordering. There's a commit in #40 that seems to address this, and there's also https://crates.io/crates/ordermap.