improve HTMLTokenizer updateStateFor