diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-18 15:13:41 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-18 15:13:41 -0500 |
commit | 8249b803d9bab9c06be02a244e629cb732f4f5b1 (patch) | |
tree | 447cddabac142fefd583df1acd6268f6abcb8f5c /beautifulsoup/builder/html5lib_builder.py | |
parent | 0dda99b15112df7225e647db9702fbd62dcc8ea8 (diff) | |
parent | e170ff33e67e806cf33e2e51fcefcfa0b9310d96 (diff) |
Ported the rest of the HTML tests, including tests of broken HTML from the TODO. Made Unicode, Dammit PEP-8 compliant.
Diffstat (limited to 'beautifulsoup/builder/html5lib_builder.py')
-rw-r--r-- | beautifulsoup/builder/html5lib_builder.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/beautifulsoup/builder/html5lib_builder.py b/beautifulsoup/builder/html5lib_builder.py index 95151da..0a24ce1 100644 --- a/beautifulsoup/builder/html5lib_builder.py +++ b/beautifulsoup/builder/html5lib_builder.py @@ -27,9 +27,9 @@ class HTML5TreeBuilder(HTMLTreeBuilder): if isinstance(markup, unicode): # We need to special-case this because html5lib sets # charEncoding to UTF-8 if it gets Unicode input. - doc.originalEncoding = None + doc.original_encoding = None else: - doc.originalEncoding = parser.tokenizer.stream.charEncoding[0] + doc.original_encoding = parser.tokenizer.stream.charEncoding[0] def create_treebuilder(self, namespaceHTMLElements): self.underlying_builder = TreeBuilderForHtml5lib( |