W3C home > Mailing lists > Public > site-comments@w3.org > January 2019

Many w3.org pages have Content-Type text/html, but <?xml ...?> at the beginning

From: Askar Safin <safinaskar@mail.ru>
Date: Thu, 10 Jan 2019 05:05:42 +0300
To: site-comments@w3.org
Message-ID: <1547085942.509286590@f555.i.mail.ru>
Hi. Many w3.org pages, in particular, https://www.w3.org/1999/xhtml/ , have the following strange behavior: web server sends header "content-type: text/html, charset=utf-8", but the document source itself looks like XML. I. e. it looks like XML, but still processed by browser as HTML. Well, there is nothing wrong with this, but you show bad example.

So, please, either configure web server to send header for XML document, either don't pretend that this is XML, i. e. write it without this <?xml ... ?>, <meta ... content="application/xhtml+xml; charset=UTF-8"/>, etc.

Other such pages:
https://www.w3.org/TR/xhtml1/
https://www.w3.org/TR/xhtml-modularization/
https://www.w3.org/TR/xhtml11/
https://www.w3.org/TR/xhtml-basic/
https://www.w3.org/TR/xhtml-print/
https://www.w3.org/TR/rdfa-syntax/
https://www.w3.org/TR/REC-xml-names/

And possibly more.

==
Askar Safin
http://vk.com/safinaskar
Received on Thursday, 10 January 2019 08:56:54 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 10 January 2019 08:56:55 UTC