This currently does not enforce it on Layout tests, even though it seems most necessary there. This is to speed up the review on this PR due to an excessive amount of layout tests that would need rebaselining if DOCTYPEs were added to them.