Buggy and shitty named entity consumption implemented. This requires a serious revision. However at the moment only 1818 of 6677 tests in html5lib tokenizer test suite fails