[issue15423] Minidom tries to parse tags inside of <script> tag
AliDD
report at bugs.python.org
Sun Jul 22 19:26:09 CEST 2012
AliDD <registration000 at web.de> added the comment:
Document Object Model (DOM) Level 1 Specification at
http://www.w3.org/TR/REC-DOM-Level-1/
states that
"The Document Object Model provides a standard set of objects for representing HTML and XML documents"
That's why I try to use xml.dom.minidom to parse some HTML. And my HTML sample is valid HTML. Possibly I misunderstand purpose of xml.dom.minidom
and / or expat and they should be used only with XML. Or I should use minidom.parseString() with some parser other as default expat. If so could you recommend some built in one?
If xml.dom.minidom should process only XML and not HTML (which not always is valid XML), than I'm sorry for disturbance and please feel free to close this issue as invalid.
----------
resolution: invalid ->
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15423>
_______________________________________
More information about the Python-bugs-list
mailing list