Permalink
Browse files

only apply decoding error change to XML parsing (not HTML for now)

  • Loading branch information...
1 parent d4270b8 commit f4d99b75af8545f5b10d447fadf3b3d7baf70a53 @scoder scoder committed May 24, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lxml/parser.pxi
View
@@ -645,7 +645,7 @@ cdef xmlDoc* _handleParseResult(_ParserContext context,
if (context._validator is not None and
not context._validator.isvalid()):
well_formed = 0 # actually not 'valid', but anyway ...
- elif (not c_ctxt.wellFormed and
+ elif (not c_ctxt.wellFormed and not c_ctxt.html and
c_ctxt.charset == tree.XML_CHAR_ENCODING_8859_1 and
[1 for error in context._error_log
if error.type == ErrorTypes.ERR_INVALID_CHAR]):

0 comments on commit f4d99b7

Please sign in to comment.