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 Wanat
Recipients Wanat
Date 2015-05-14.22:09:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1431641354.19.0.986717632735.issue24197@psf.upfronthosting.co.za>
In-reply-to
Content
from xml.dom import minidom

html = """<html>
  <body>
    <!-- <img src="/images/obraz--super.jpg"/> -->
  </body>
</html>"""


minidom.parseString(html)


Result:
Traceback (most recent call last):
  File "minidom.py", line 10, in <module>
    minidom.parseString(html)
  File "/usr/lib/python2.7/xml/dom/minidom.py", line 1928, in parseString
    return expatbuilder.parseString(string)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 940, in parseString
    return builder.parseString(string)
  File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 223, in parseString
    parser.Parse(string, True)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 3, column 34


Tested versions:
2.7.6, 2.7.3

Reason:
-- between obraz and super;
History
Date User Action Args
2015-05-14 22:09:14Wanatsetrecipients: + Wanat
2015-05-14 22:09:14Wanatsetmessageid: <1431641354.19.0.986717632735.issue24197@psf.upfronthosting.co.za>
2015-05-14 22:09:14Wanatlinkissue24197 messages
2015-05-14 22:09:13Wanatcreate