'Make sure that if there\'s no top-level node lenient-mode won\'t
drop leading text that\'s outside of any elements.'

def test_leadingTextDropping(self):

    s = 'Hi    orders!    <br>Well.    <br>'
    d = microdom.parseString(s, beExtremelyLenient=True)
    self.assertEqual(d.firstChild().toxml(), '<html>Hi    orders!    <br    />Well.    <br    /></html>')
    byteStream = BytesIO()
    d.firstChild().writexml(byteStream, '', '', '', '', {}, '')
    self.assertEqual(byteStream.getvalue(), '<html>Hi    orders!    <br    />Well.    <br    /></html>')
