parse5
parse5 copied to clipboard
Character token optimization
We can significantly reduce parser invocations by combining character and whitespace character tokens in some insertion modes. E.g. in body
we can adjust tokenizer to not emit dedicated whitespace character tokens. We can just set flag that token contains whitespace characters and set frameset-ok
flag depending on its value.