This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20742 - "there can only be one meta-based character encoding declaration per document"
Summary: "there can only be one meta-based character encoding declaration per document"
Status: RESOLVED MOVED
Alias: None
Product: HTML Checker
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: PC All
: P2 major
Target Milestone: ---
Assignee: Michael[tm] Smith
QA Contact: qa-dev tracking
URL: http://www.w3.org/html/wg/drafts/html...
Whiteboard:
Keywords:
: 20743 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-01-23 09:03 UTC by Leif Halvard Silli
Modified: 2016-02-04 07:28 UTC (History)
2 users (show)

See Also:


Attachments

Description Leif Halvard Silli 2013-01-23 09:03:07 UTC
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: http://tinyurl.com/bz73pqh )
Comment 1 Chris Rebert 2016-02-04 07:26:00 UTC
*** Bug 20743 has been marked as a duplicate of this bug. ***
Comment 2 Chris Rebert 2016-02-04 07:28:37 UTC
Re-filed as https://github.com/validator/validator/issues/236