fix http://code.google.com/p/html5lib/issues/detail?id=186 https://github.com/html5lib/html5lib-python/issues/33