Fixed tests. Replaced http://www.w3.org/1999/xhtml/html5 with http://www.w3.org/1999/xhtml according to html5.rnc
remove unused else block
typo
halve memory in interner