[issue4955] inconsistent, perhaps incorrect, behavior with respect to entities parsed by xml.sax

Jean-Paul Calderone report at bugs.python.org
Fri Jan 16 17:39:42 CET 2009


Jean-Paul Calderone <exarkun at divmod.com> added the comment:

After further investigation, I've learned a bit more.  External entities
are forbidden in attribute values.  Their presence constitutes a "fatal
error" according to <http://www.w3.org/TR/REC-xml/#forbidden>.  This
means that dropping entities in an attribute value is incorrect. 
Instead the fatal error hook must be called.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4955>
_______________________________________


More information about the Python-bugs-list mailing list