Skip to content

Attribute order not maintained #41

@daniel-ferguson

Description

@daniel-ferguson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions