This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author uranusjr
Recipients uranusjr
Date 2022-02-13.12:57:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644757078.96.0.518529275585.issue46738@roundup.psfhosted.org>
In-reply-to
Content
Currently, a directory listing page emitted by http.parser uses the HTML 4.01 doctype. While this is perfectly fine for most uses, the server tool is sometimes used for things that require another doctype; PEP 503[1], for example, requires an HTML 5 document.

From what I can tell, http.parser is already emitting a valid HTML 5 page, so it should be possible to simply change the doctype declaration. Or, if backward compatibility is paramount, this could live behind a --doctype flag as well. If we go the latter route, more doctypes (e.g. XHTML) could potentially be supported as well with minimal modification.

[1]: https://www.python.org/dev/peps/pep-0503/
History
Date User Action Args
2022-02-13 12:57:58uranusjrsetrecipients: + uranusjr
2022-02-13 12:57:58uranusjrsetmessageid: <1644757078.96.0.518529275585.issue46738@roundup.psfhosted.org>
2022-02-13 12:57:58uranusjrlinkissue46738 messages
2022-02-13 12:57:58uranusjrcreate