capybara/virtualenv/lib/python2.7/site-packages/lxml/html/html5parser.py
def document_fromstring(html, guess_charset=True, parser=None):
    """Parse a whole document into a string."""
    if not isinstance(html, _strings):
        raise TypeError('string required')

    if parser is None:
        parser = html_parser

    return parser.parse(html, useChardet=guess_charset).getroot()
def document_fromstring(html, guess_charset=True, parser=None):
    if not isinstance(html, _strings):
        raise TypeError('string required')

    if parser is None:
        parser = html_parser

    return parser.parse(html, useChardet=guess_charset).getroot()
def document_fromstring ( html , guess_charset = True , parser = None ) : if not isinstance ( html , _strings ) : raise TypeError ( 'string required' ) if parser is None : parser = html_parser return parser . parse ( html , useChardet = guess_charset ) . getroot ( )
Parse a whole document into a string.
Parse a whole document into a string .