summaryrefslogtreecommitdiff
path: root/src/beautifulsoup/builder/html5lib_builder.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/beautifulsoup/builder/html5lib_builder.py')
-rw-r--r--src/beautifulsoup/builder/html5lib_builder.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/beautifulsoup/builder/html5lib_builder.py b/src/beautifulsoup/builder/html5lib_builder.py
index b4ef4de..80c3e6d 100644
--- a/src/beautifulsoup/builder/html5lib_builder.py
+++ b/src/beautifulsoup/builder/html5lib_builder.py
@@ -21,4 +21,7 @@ class HTML5TreeBuilder(SAXTreeBuilder, HTMLTreeBuilder):
walker = treewalkers.getTreeWalker('dom')
dom2sax(doc, self)
+ def test_fragment_to_document(self, fragment):
+ """See `TreeBuilder`."""
+ return u'<html><head></head><body>%s</body></html>' % fragment