[issue24197] minidom parses comments wrongly

2015-05-14 Thread Ned Deily
Ned Deily added the comment: Thanks for your report. Alas, according to the W3C XML 1.0 specification: "For compatibility, the string " -- " (double-hyphen) MUST NOT occur within comments." So, it appears minidom (and other XML parsers) are correct in rejecting your example as not well-form

[issue24197] minidom parses comments wrongly

2015-05-14 Thread Paweł
New submission from Paweł: from xml.dom import minidom html = """ """ minidom.parseString(html) Result: Traceback (most recent call last): File "minidom.py", line 10, in minidom.parseString(html) File "/usr/lib/python2.7/xml/dom/minidom.py", line 1928, in parseString