[issue46738] Allow http.server to emit HTML 5

2022-02-15 Thread Martin Panter


Change by Martin Panter :


--
superseder:  -> Generate HTML 5 with SimpleHTTPRequestHandler.list_directory

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46738] Allow http.server to emit HTML 5

2022-02-15 Thread Jelle Zijlstra


Jelle Zijlstra  added the comment:

Looks like this is a duplicate of issue46736. Seems like a good idea though!

--
nosy: +Jelle Zijlstra
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46738] Allow http.server to emit HTML 5

2022-02-13 Thread Tzu-ping Chung


New submission from Tzu-ping Chung :

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/

--
components: Library (Lib)
messages: 413179
nosy: uranusjr
priority: normal
severity: normal
status: open
title: Allow http.server to emit HTML 5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com