'Ensure that no *trailing* text in a mal-formed
no-top-level-element document(s) will not be dropped.'

def test_trailingTextDropping(self):

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