View Single Post
Old 11-14-2019, 09:06 AM   #7
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,887
Karma: 6120478
Join Date: Nov 2009
Device: many
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
KevinH is offline   Reply With Quote