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 r.david.murray
Recipients Martin.Potthast, orsenthil, r.david.murray
Date 2010-12-22.15:48:56
SpamBayes Score 0.0025139519
Marked as misclassified No
Message-id <1293032938.95.0.93900516359.issue10759@psf.upfronthosting.co.za>
In-reply-to
Content
Leaving the input unchanged does seem to be what browsers do.  (Issue 7626 has some info on browser behaviour with invalid entity refs.)

Rather than pre-validating the input, I think the exception can be caught and the putative entity returned unchanged, similar to how a keyerror is handled for a named entity.

Would you have any interest in proposing a patch and tests?
History
Date User Action Args
2010-12-22 15:48:59r.david.murraysetrecipients: + r.david.murray, orsenthil, Martin.Potthast
2010-12-22 15:48:58r.david.murraysetmessageid: <1293032938.95.0.93900516359.issue10759@psf.upfronthosting.co.za>
2010-12-22 15:48:56r.david.murraylinkissue10759 messages
2010-12-22 15:48:56r.david.murraycreate