diff --git a/Userland/Libraries/LibWeb/DOM/Node.cpp b/Userland/Libraries/LibWeb/DOM/Node.cpp index 63c9234a52..2b775c197e 100644 --- a/Userland/Libraries/LibWeb/DOM/Node.cpp +++ b/Userland/Libraries/LibWeb/DOM/Node.cpp @@ -1880,7 +1880,7 @@ ErrorOr Node::name_or_description(NameOrDescription target, Document con if (is(this)) { auto const* element = static_cast(this); auto tooltip = element->title(); - if (!tooltip.has_value() && !tooltip->is_empty()) + if (tooltip.has_value() && !tooltip->is_empty()) return tooltip.release_value(); } // Append the result of each step above, with a space, to the total accumulated text.