From 50ec91fbe313c9b74cc514108f5e338e6e9b6f80 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sat, 2 Sep 2023 09:58:21 -0400 Subject: [PATCH] LibWeb: Add a missing spec-mandated return in Element::toggle_attribute --- Userland/Libraries/LibWeb/DOM/Element.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp index 0896b8023e..7dd7c3b5df 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.cpp +++ b/Userland/Libraries/LibWeb/DOM/Element.cpp @@ -324,6 +324,8 @@ WebIDL::ExceptionOr Element::toggle_attribute(DeprecatedFlyString const& n m_attributes->remove_attribute(name); attribute_changed(name, {}); invalidate_style_after_attribute_change(name); + + return false; } // 6. Return true.