ladybird/Tests/LibWeb
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
..
Layout LibWeb: Stop crashing when textarea element is modified before insertion 2023-09-09 13:52:01 +01:00
Ref LibWeb: Implement attr() types :^) 2023-09-05 14:27:23 +02:00
Text LibWeb: Support [Reflect] on IDL String attributes that may return null 2023-09-05 20:36:09 -04:00
WPT Tests: Convert WebDriver patch to a git patch and clean up assumptions 2023-08-20 03:20:54 +02:00
CMakeLists.txt LibWeb: Implement spec-compliant integer parsing 2023-08-24 22:26:53 +01: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: Perform rounding when dividing CSSPixels 2023-09-05 14:50:45 +02:00
TestHTMLTokenizer.cpp LibWeb: Set the correct end position of HTML attribute names 2023-08-25 08:22:24 +02:00
TestNumbers.cpp LibWeb: Implement spec-compliant integer parsing 2023-08-24 22:26:53 +01:00
tokenizer-test.html LibWeb: Fix assertion failure when tokenizing JS regex literals 2021-07-15 01:47:22 +02:00