Bug 21174 - Polyglot: allow UTF-8 to be declared with meta@http-equiv="content-type"
Summary: Polyglot: allow UTF-8 to be declared with meta@http-equiv="content-type"
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML/XHTML Compatibility Authoring Guide (ed: Eliot Graff) (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 enhancement
Target Milestone: ---
Assignee: Leif Halvard Silli
QA Contact: HTML WG Bugzilla archive list
URL: http://dev.w3.org/html5/html-xhtml-au...
Depends on: 21818
  Show dependency treegraph
Reported: 2013-03-02 21:45 UTC by Leif Halvard Silli
Modified: 2013-09-01 19:53 UTC (History)
5 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Leif Halvard Silli 2013-03-02 21:45:29 UTC
1. HTML5 permits exactly  <meta charset="UTF-8"/> in XHTML5 to help switch between XHTML and HTML. 

2. The equivalent alternative version - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> - is not permited.

3. Polyglot spec, with its focus on conformance with the HTMl5 spec, does therefore today only permit the former - but not the latter.

4. However, fact is that in some implementation segments, the @charset variant is not supported. For instance OpenOffice, on last check, did not support <meta charset="UTF-8"/>. Thus, if the authors wants to support such implementations, he/she has to not conformin to the polyglot spec

5. This seems odd, given that the HTML5 spec defines the two as alterantive variants. Also, not having the option to use the http-equiv variant, takes away one a robustness capability from polyglot markup.  And so, to fix this, the @http-equiv variant should be made permitted polyglot markup.  

6. Ultimately, the HTML5 spec should say that the http-equiv variant should be allowed in XHTML5 (and I will file a bug about that). But if this does not happen, the polylglot spec should consider a willful violoation of the HTML5 spec in this detail.
Comment 1 Leif Halvard Silli 2013-04-25 01:47:36 UTC
Accepted. However, since it depends on bug 21818, we need the editors for the HTML spec to solve that bug first.
Comment 2 Leif Halvard Silli 2013-09-01 19:53:37 UTC
Change to the spec comitted.