Ported HtmlTokenizer.consumeNumberEntity