diff --git a/Libraries/LibWeb/DOM/Node.cpp b/Libraries/LibWeb/DOM/Node.cpp index 2d63b4066f..dabe8c9cb5 100644 --- a/Libraries/LibWeb/DOM/Node.cpp +++ b/Libraries/LibWeb/DOM/Node.cpp @@ -78,13 +78,9 @@ const HTML::HTMLElement* Node::enclosing_html_element() const String Node::text_content() const { - Vector strings; StringBuilder builder; for (auto* child = first_child(); child; child = child->next_sibling()) { - auto text = child->text_content(); - if (!text.is_empty()) { - builder.append(child->text_content()); - } + builder.append(child->text_content()); } return builder.to_string(); }