ladybird/Userland
Sam Atkins b1a569c1c5 LibWeb: Stop crashing when textarea element is modified before insertion
If an element is created from JS, it might have its contents modified
before it is inserted into the document. In this case, we don't have a
shadow tree yet and so trying to set m_text_node's text content would
cause a null dereference. So let's not do that. :^)

That case also means that by the time we do create the shadow tree, we
have the text content already, so we can set it there.

Added a test to verify that we don't crash, and that the text content
appears in the textarea whether it was inserted by JS or by the HTML
parser.
2023-09-09 13:52:01 +01:00
..
Applets Userland: Migrate to String in notification system 2023-09-01 12:06:08 +02:00
Applications HexEditor: Replace DeprecatedString in HexEditor.cpp 2023-09-07 09:58:00 -06:00
BuggieBox Userland: Pretty print the help text in BuggieBox 2023-08-09 02:10:02 +02:00
Demos Mandelbrot: Pledge unix to enable image export 2023-08-17 07:14:54 +02:00
DevTools LibGfx: Convert FontDatabase APIs to use FlyString 2023-09-06 11:29:03 -04:00
DynamicLoader LibC+LibELF: Support loading shared libraries compiled with dynamic TLS 2023-08-18 16:20:13 +02:00
Games LibGfx: Convert Font APIs to return String instead of DeprecatedString 2023-09-06 11:29:03 -04:00
Libraries LibWeb: Stop crashing when textarea element is modified before insertion 2023-09-09 13:52:01 +01:00
Services Kernel+Services: Enable barebones hot-plug handling capabilities 2023-09-07 11:50:50 -06:00
Shell Shell: Allow the user to set the prompt using PROMPT() 2023-09-07 11:52:37 -06:00
Utilities find: Print hyperlinks when standard output is attached to a terminal 2023-09-07 11:52:09 -06:00
CMakeLists.txt