* Have the cleaned up style attributes be dumped in the same order they were originally so that we can easily validate against text content. * While lxml's attributes are stored in an ordereddict, namespaces are not and thus when comparing text serialisation of namespaced documents the ordering of namespaces can differ between runs. Fix by comparing the LXML trees directly.