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

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