fix for https://github.com/html5lib/html5lib-python/issues/33

Hello, take a look at my patch please

Karim