So something is wrong with the OPF parsing code. It uses TagAtts.h which is definitely ordered. Probably something in inside the BS4 lxml repair parser which is invoked.
I will try to add a bunch of opf debug code to try to see where this is happening. Hopefully not deep inside lxml.
|