gumbo will most likely preserve attribute order because it does not use a dictionary to store the attributes. So it is our python code that is the issue as it uses maps/dicts when parsing xml and when storing the opf, and in parsing xhtml. We can look into using a order preserving dict for python (I think one already exists), but the attribute order will still be an issue in our Qt hashes/maps that as far as I know are not order preserving.
So that would take quite a bit of work for something that already is spec, as attribute order in xml/xhtml does not depend on order.
Maybe a project post Sigil 1.0.
Kevin
|