ladybird/Userland/Libraries/LibWeb/HTML/Parser
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
..
Entities.cpp Everywhere: Use nested namespace qualifiers 2023-07-12 10:05:42 +03:30
Entities.h Everywhere: Use nested namespace qualifiers 2023-07-12 10:05:42 +03:30
HTMLEncodingDetection.cpp LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
HTMLEncodingDetection.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
HTMLParser.cpp LibWeb: Don't overwrite existing text content when flushing HTML parser 2023-08-16 12:16:05 +02:00
HTMLParser.h LibWeb: Add Web::HTML::parse_legacy_color_value 2023-05-28 13:24:37 +02:00
HTMLToken.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
HTMLToken.h Everywhere: Use AK_MAKE_DEFAULT_MOVABLE to avoid mistakes 2023-06-18 08:47:51 +01:00
HTMLTokenizer.cpp LibWeb: Don't include Layout/Node.h from DOM/Element.h 2023-05-08 09:29:44 +02:00
HTMLTokenizer.h LibJS+LibWeb: Wrap raw JS::Cell*/& fields in GCPtr/NonnullGCPtr 2023-03-15 08:48:49 +01:00
ListOfActiveFormattingElements.cpp AK+Everywhere: Rename FlyString to DeprecatedFlyString 2023-01-09 23:00:24 +00:00
ListOfActiveFormattingElements.h Everywhere: Remove NonnullRefPtr.h includes 2023-03-06 23:46:35 +01:00
StackOfOpenElements.cpp AK+Everywhere: Rename FlyString to DeprecatedFlyString 2023-01-09 23:00:24 +00:00
StackOfOpenElements.h Everywhere: Remove NonnullRefPtr.h includes 2023-03-06 23:46:35 +01:00