Problems producing polyglot (Was: TAG Decision on Rescinding the request to the HTML WG to develop a polyglot guide)

Daniel Glazman, Tue, 22 Jan 2013 09:37:57 +0100:
> On 22/01/13 09:16, Henri Sivonen wrote:

> Anyway, this is not the point. The point is making sure an app is able
> to serialize correctly the following:
> 
>   - xhtml 1 or 1.1
>   - html5, xml serialization, not poyglot
>   - html5, xml serialization, polyglot
> 
> I can make the difference between the first and the two last ones based
> on the doctype and friends. I am unable to make any difference between
> the two last ones.

How about simply check that the page is UTF-8 encoded and - regardless 
of the XHTML variant, always remove the XML declaration what that is 
the case?

Because, clearly, the principles found in Polyglot Markup can - and 
should - be applied to XHTML1 as well. For instance there is no 
agreement amongst text/html parsers with regard to whether they use the 
XML declaration in order to detect the encoding. Some parsers do and 
some don't. Thus, there should be a XML declaration in XHTML1.x docs 
either.
-- 
leif halvard silli

Received on Tuesday, 22 January 2013 23:31:42 UTC