Skip to content

Stop sorting attributes #121

Description

@deanberris

When I do:

link[rel=import][href=../foo/bar.html]

It expands to

<link href="../foo/bar.html" rel="import">

While that's normally fine, it would be great if sparkup kept the order of the attributes as they are written instead of sorting them. Looking at the Python code, it's not immediately obvious where the order of attributes would be controlled though.

Maybe have an option that would respect the attribute order?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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