fix(tokenizer): align edge-case parsing behavior with HTML spec

Merged
FB
7mo ago
+611-18

Handle the following tokenizer edge cases to match the HTML spec:

  • Allow comment to close on --!>,
  • Recognize closing tags that end with / before > (e.g. </div/>),
  • .reset() special-tag state correctly, and
  • Wait for ?> in XML processing instructions.