Fix #405 - compatibility with html5lib 1.0
Merge pull request #406 from ambv/develop

Fix #405 - compatibility with html5lib 1.0