Ver código fonte

LibWeb: Add a missing spec-mandated return in Element::toggle_attribute

Timothy Flynn 1 ano atrás
pai
commit
50ec91fbe3
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      Userland/Libraries/LibWeb/DOM/Element.cpp

+ 2 - 0
Userland/Libraries/LibWeb/DOM/Element.cpp

@@ -324,6 +324,8 @@ WebIDL::ExceptionOr<bool> 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.