Bug 1085121 - Support mixed-cased (non-uppercase) doctypes.