diff options
Diffstat (limited to 'bs4/builder/_lxml.py')
-rw-r--r-- | bs4/builder/_lxml.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/builder/_lxml.py b/bs4/builder/_lxml.py index 92ace07..fa5d498 100644 --- a/bs4/builder/_lxml.py +++ b/bs4/builder/_lxml.py @@ -97,7 +97,7 @@ class LXMLTreeBuilderForXML(TreeBuilder): try_encodings = [user_specified_encoding, document_declared_encoding] detector = EncodingDetector(markup, try_encodings, is_html) for encoding in detector.encodings: - yield (markup, encoding, document_declared_encoding, False) + yield (detector.markup, encoding, document_declared_encoding, False) def feed(self, markup): if isinstance(markup, bytes): |