diff --git a/Tests/LibWeb/Layout/expected/textarea-content.txt b/Tests/LibWeb/Layout/expected/textarea-content.txt new file mode 100644 index 0000000000..a5ad26030f --- /dev/null +++ b/Tests/LibWeb/Layout/expected/textarea-content.txt @@ -0,0 +1,38 @@ +Viewport <#document> at (0,0) content-size 800x600 children: not-inline + BlockContainer at (0,0) content-size 800x56.9375 [BFC] children: not-inline + BlockContainer at (8,8) content-size 784x40.9375 children: inline + line 0 width: 403.75, height: 40.9375, bottom: 40.9375, baseline: 13.53125 + frag 0 from BlockContainer start: 0, length: 0, rect: [11,11 191.875x34.9375] + frag 1 from TextNode start: 0, length: 1, rect: [206,8 8x17.46875] + " " + frag 2 from BlockContainer start: 0, length: 0, rect: [217,11 191.875x34.9375] + TextNode <#text> + BlockContainer + + diff --git a/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp index af348fdf95..8e813be978 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLTextAreaElement.cpp @@ -101,11 +101,12 @@ void HTMLTextAreaElement::create_shadow_tree_if_needed() m_inner_text_element = MUST(DOM::create_element(document(), HTML::TagNames::div, Namespace::HTML)); - // NOTE: The text content of the