'Document is the top-level element in the Document Object Model.
It contains nested Element, Text and Comment nodes.'

def __init__(self, html, **kwargs):

    kwargs['selfClosingTags'] = kwargs.pop('self_closing', kwargs.get('selfClosingTags'))
    Node.__init__(self, u(html).strip(), type=DOCUMENT, **kwargs)
