Stefan Behnel <stefan...@behnel.de> added the comment:

Yes, comment text should be escaped internally like all other text, not by the 
user. The same applies to processing instructions.

This suggests that it's probably also untested currently. Could you provide a 
PR for that changes both and adds tests?

----------
stage:  -> needs patch
versions: +Python 3.8 -Python 2.7, Python 3.6, Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33303>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to