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

R. David Murray report at bugs.python.org
Wed Jul 27 21:13:09 CEST 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

I thought HTLM4 conformance was documented somewhere, but I could be wrong.

HTML5, from what I understand (I haven't read the spec), is explicitly or implicitly following "what browsers really do" exactly because nobody conformed to HTML4, so arguing that "a later spec changed the rules" isn't really relevant in this case :)

We made the change the way we did (strict option) out of backward compatibility concerns, so I still think this topic needs to be discussed on python-dev.  I think the argument that python should handle what most browsers handle is a strong one (I myself would have been in favor of just making this stuff work, absent backward compatibility concerns).  The question in my mind is what's the best way to get there from here?

----------

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


More information about the Python-bugs-list mailing list