This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Doctype override seems to always insert the new doctype declaration as the first line of the document. This causes bad results if the document had eg. an XML declaration. The document becomes something like (sample URL pending for beta update, ie. the GET'ability of result pages :): <!DOCTYPE here_goes_the_overridden_doctype> <?xml version="1.0"?> <?other stuff?> <!-- <!DOCTYPE here_is_the_original_doctype> -->
Fixed. DOCTYPE is now inserted immediately before the original DOCTYPE if there was one, and at the beginning of the file if there wasn't.