implement tostring for html5lib parser

This commit is contained in:
Christophe Benz 2010-11-16 15:14:35 +01:00 committed by Romain Bignon
commit 2ab29ac070

View file

@ -47,6 +47,5 @@ class Html5libParser(HTMLParser, IParser):
def parse(self, data, encoding):
return HTMLParser.parse(self, data, encoding=encoding)
def tostring(self, elem):
# TODO
raise NotImplementedError()
def tostring(self, element):
return element.toxml()