1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

LibWeb: Make HTML parser flush all pending tokens in "in table text"

There were multiple bugs in the parsing algorithm for handling text
occurring inside a `table` element:

- When there was pending non-whitespace text inside a table, we only
  flushed one token instead of all pending tokens.

- Also, we didn't even flush one of the right tokens, but instead the
  token that caused the flush to happen.

- Once we started flushing the right tokens, it turned out we had not
  yet implemented character insertion points expressed as "before X".

- Finally, we were not exiting the "in table text" mode after flushing
  pending tokens, effectively getting us stuck in that mode until EOF.
This commit is contained in:
Andreas Kling 2023-07-03 10:00:20 +02:00
parent 8c3e5137f7
commit 5cdb394400
3 changed files with 25 additions and 12 deletions

View file

@ -0,0 +1 @@
PASS