html._html5builder

Legacy module - don’t use in new code!

html5lib now has its own proper implementation.

This module implements a tree builder for html5lib that generates lxml html element trees. This module uses camelCase as it follows the html5lib style guide.

Module Contents

Classes

DocumentType(self,name,publicId,systemId)
Document(self)
TreeBuilder(self,*args,**kwargs)
class DocumentType(name, publicId, systemId)
__init__(name, publicId, systemId)
class Document
__init__()
appendChild(element)
class TreeBuilder(*args, **kwargs)
__init__(*args, **kwargs)
reset()
getDocument()
getFragment()
insertDoctype(name, publicId, systemId)
insertComment(data, parent=None)
insertRoot(name)