diff --git a/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.cpp
index b2fc037e15..7d7b681e26 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.cpp
@@ -62,10 +62,10 @@ DOM::Element* HTMLSelectElement::item(size_t index)
}
// https://html.spec.whatwg.org/multipage/form-elements.html#dom-select-nameditem
-DOM::Element* HTMLSelectElement::named_item(DeprecatedFlyString const& name)
+DOM::Element* HTMLSelectElement::named_item(FlyString const& name)
{
// The namedItem(name) method must return the value returned by the method of the same name on the options collection, when invoked with the same argument.
- return const_cast(*options()).named_item(FlyString::from_deprecated_fly_string(name).release_value());
+ return const_cast(*options()).named_item(name);
}
// https://html.spec.whatwg.org/multipage/form-elements.html#dom-select-add
@@ -149,11 +149,11 @@ i32 HTMLSelectElement::default_tab_index_value() const
}
// https://html.spec.whatwg.org/multipage/form-elements.html#dom-select-type
-DeprecatedString const& HTMLSelectElement::type() const
+String const& HTMLSelectElement::type() const
{
// The type IDL attribute, on getting, must return the string "select-one" if the multiple attribute is absent, and the string "select-multiple" if the multiple attribute is present.
- static DeprecatedString select_one = "select-one"sv;
- static DeprecatedString select_multiple = "select-multiple"sv;
+ static String const select_one = "select-one"_string;
+ static String const select_multiple = "select-multiple"_string;
if (!has_attribute(AttributeNames::multiple))
return select_one;
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.h b/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.h
index bd1040f117..02f5a9d854 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.h
+++ b/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.h
@@ -27,7 +27,7 @@ public:
size_t length();
DOM::Element* item(size_t index);
- DOM::Element* named_item(DeprecatedFlyString const& name);
+ DOM::Element* named_item(FlyString const& name);
WebIDL::ExceptionOr add(HTMLOptionOrOptGroupElement element, Optional before = {});
int selected_index() const;
@@ -58,7 +58,7 @@ public:
virtual void reset_algorithm() override;
- DeprecatedString const& type() const;
+ String const& type() const;
virtual Optional default_role() const override;
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.idl b/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.idl
index d57ca829c1..a4ad55ff67 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.idl
+++ b/Userland/Libraries/LibWeb/HTML/HTMLSelectElement.idl
@@ -2,7 +2,7 @@
#import
// https://html.spec.whatwg.org/multipage/form-elements.html#htmlselectelement
-[Exposed=Window]
+[Exposed=Window, UseNewAKString]
interface HTMLSelectElement : HTMLElement {
[HTMLConstructor] constructor();