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

Hi. Many pages, in particular, , 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:

And possibly more.

Askar Safin

Received on Thursday, 10 January 2019 08:56:54 UTC