NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 960 - "there can only be one meta-based character encoding declaration per document"
"there can only be one meta-based character encoding declaration per document"
Status: RESOLVED MOVED
Product: Validator.nu
Classification: Unclassified
Component: Non-schema checkers
HEAD
All All
: P2 major
Assigned To: Nobody
http://www.w3.org/html/wg/drafts/html...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-23 11:05 CET by Leif Halvard Silli
Modified: 2016-02-04 17:45 CET (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leif Halvard Silli 2013-01-23 11:05:37 CET
HTML5 says that

]] In addition, due to a number of restrictions on meta elements, there can only be one meta-based character encoding declaration per document. [[

Which means that it is an error when the validator doesn't consider the last 3 metatags an error.


<!DOCTYPE html>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta charset="UTF-8">
<title></title>

(Try in valdiator.nu: http://tinyurl.com/a6pvtnf )

The bug has also been reported at https://www.w3.org/Bugs/Public/show_bug.cgi?id=20743
Comment 1 Michael[tm] Smith 2016-02-04 17:45:28 CET
Moved to https://github.com/validator/validator/issues/236