1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:07:35 +00:00
serenity/Tests/LibWeb
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
..
Layout LibWeb: Make HTMLElement.offset{Left,Top} work on inline elements 2023-08-15 16:37:11 +02:00
Ref Tests/LibWeb: Add opacity-stacking.html test to manifest.json 2023-08-14 23:52:53 +02:00
Text LibWeb: Don't overwrite existing text content when flushing HTML parser 2023-08-16 12:16:05 +02:00
WPT Tests/LibWeb: Update WPT expectations 2023-07-19 18:34:36 +02:00
CMakeLists.txt Tests/LibWeb: Add tests for CSSPixels class 2023-07-25 11:52:02 +02:00
rebaseline-libweb-test Tests/LibWeb: Update rebaseline-libweb-test for path changes 2023-06-10 21:46:33 +02:00
TestCSSIDSpeed.cpp LibWeb: Make value_id_from_string() return Optional 2023-05-25 06:36:10 +02:00
TestCSSPixels.cpp LibWeb: Implement rounding for PixelUnits 2023-08-05 20:03:09 +02:00
TestHTMLTokenizer.cpp Everywhere: Remove unintentional partial stream reads and writes 2023-03-13 15:16:20 +00:00
tokenizer-test.html LibWeb: Fix assertion failure when tokenizing JS regex literals 2021-07-15 01:47:22 +02:00