1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:38:10 +00:00
serenity/Tests/LibWeb/Text
Andreas Kling e2740bd19d LibWeb: Don't overwrite existing text content when flushing HTML parser
If we run an inline script from the HTML parser, it may append a text
node to the current insertion point.

If there was text content immediately following the script element,
we would previously overwrite the script-inserted text content, due to
an oversight in the way we select an appropriate insertion point

This patch fixes the issue by only inserting parser content into
existing text nodes if they are empty.
2023-08-16 12:16:05 +02:00
..
expected LibWeb: Don't overwrite existing text content when flushing HTML parser 2023-08-16 12:16:05 +02:00
input LibWeb: Don't overwrite existing text content when flushing HTML parser 2023-08-16 12:16:05 +02:00