diff --git a/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.cpp
index d60904637c..6f4828c7d2 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.cpp
@@ -57,20 +57,6 @@ void HTMLButtonElement::initialize(JS::Realm& realm)
set_prototype(&Bindings::ensure_web_prototype(realm, "HTMLButtonElement"));
}
-StringView HTMLButtonElement::type() const
-{
- auto value = deprecated_attribute(HTML::AttributeNames::type);
-
-#define __ENUMERATE_HTML_BUTTON_TYPE_ATTRIBUTE(keyword, _) \
- if (value.equals_ignoring_ascii_case(#keyword##sv)) \
- return #keyword##sv;
- ENUMERATE_HTML_BUTTON_TYPE_ATTRIBUTES
-#undef __ENUMERATE_HTML_BUTTON_TYPE_ATTRIBUTE
-
- // The missing value default and invalid value default are the Submit Button state.
- return "submit"sv;
-}
-
HTMLButtonElement::TypeAttributeState HTMLButtonElement::type_state() const
{
auto value = deprecated_attribute(HTML::AttributeNames::type);
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.h b/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.h
index 76173781ff..94327c49bd 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.h
+++ b/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.h
@@ -34,7 +34,6 @@ public:
#undef __ENUMERATE_HTML_BUTTON_TYPE_ATTRIBUTE
};
- StringView type() const;
TypeAttributeState type_state() const;
WebIDL::ExceptionOr set_type(String const&);