A bug in lxml causes it to lose the doctype (even though it's parsed correctly). We therefore have to add it manually.
Merge remote-tracking branch 'origin/master' into 588-incorrect-height-of-text-input-fields
Merge pull request #589 from openspending/588-incorrect-height-of-text-input-fields

Doctype declaration added