This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The spec says to look at content='' on each meta and try to interpret it as an encoding decl, even if it doesn't have http-equiv=content-type. This allows attackers to change the encoding if a page allows text to be inserted in a <meta name=description content='...'> (or keywords, author, etc). This can cause scripts to execute twice or change the meaning of URLs and form submission. Maybe we should require http-equiv=content-type (possibly also other combinations if compat requires e.g. name=content-type or http-equiv=contenttype). Discussion at http://krijnhoetmer.nl/irc-logs/whatwg/20100311#l-184
Checked in as WHATWG revision r4993. Check-in comment: Change how character encodings are sniffed to require an http-equiv attribute, and to only process one character encoding per <meta> element, even if attributes are duplicated. http://html5.org/tools/web-apps-tracker?from=4992&to=4993
Checked in as WHATWG revision r4994. Check-in comment: Change how <meta> is processed during parsing to require an explicit http-equiv=content-type where applicable. http://html5.org/tools/web-apps-tracker?from=4993&to=4994
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document: http://dev.w3.org/html5/decision-policy/decision-policy.html Status: Accepted Change Description: see diffs given above Rationale: Concurred with reporter's comments.
I haven't done a compat study for this yet. But new bugs can be filed if the algorithm needs tweaking.