[issue11567] http.server error message format
Senthil Kumaran
report at bugs.python.org
Sun Mar 20 03:35:18 CET 2011
Senthil Kumaran <orsenthil at gmail.com> added the comment:
Ezio Melotti wrote:
> This is just nitpicking, but serving XHTML as text/html is wrong.
While, I thought this statement is correct and expected the Internet
media-type should be something else (application/xhtml+xml), but as
per w3c, it is not wrong to serve XHTML as text/html (RFC 3236)
Also, have a look at the example given at:
http://www.w3.org/QA/2002/04/Web-Quality
Validating the present output using the validator will give a green
signal too.
>Also XHTML is not necessary here, so I would just use an HTML 4.01
>strict doctype (and remove the xmlns).
Agree to this. Although at the moment it does not cause any harm, it
is a good to be plain HTML when it is a http server.
Éric - HTML5 is not a standard yet and when it becomes one (or much
earlier, when it becomes a de-facto standard), then html producing
stdlib modules should move to it. I don't think we should move faster
than browsers or html client applications.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11567>
_______________________________________
More information about the Python-bugs-list
mailing list