[issue670664] HTMLParser.py - more robust SCRIPT tag parsing

Ezio Melotti report at bugs.python.org
Mon Oct 31 18:13:22 CET 2011


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

I think it's internal.  While it's not explicitly mentioned in the source, the method is not documented and I don't think people subclassed it.  All that it does is changing the regex used to parse the data, and if someone needs to change this, it's probably easier to just change the regex.
OTOH this method is called just in one place, so in theory it's possible to set self.cdata_elem there before the set_cdata_mode() call, but that might make the code more fragile.

----------

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


More information about the Python-bugs-list mailing list