mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibWeb: Port HTMLInputElement from DeprecatedString to String
And dealing with the fallout of doing so. I am not 100% sure that it is safe for us to be treating Strings in the value sanitization algorithm in all cases as if they are ASCII, but this commit does not change any existing behaviour there.
This commit is contained in:
committed by
Andreas Kling
parent
6c9fffc4c1
commit
e3bc8610a9
@@ -60,11 +60,9 @@ bool HTMLButtonElement::is_submit_button() const
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-elements.html#the-button-element:concept-fe-value
|
||||
DeprecatedString HTMLButtonElement::value() const
|
||||
String HTMLButtonElement::value() const
|
||||
{
|
||||
if (!has_attribute(AttributeNames::value))
|
||||
return DeprecatedString::empty();
|
||||
return deprecated_attribute(AttributeNames::value);
|
||||
return attribute(AttributeNames::value).value_or(String {});
|
||||
}
|
||||
|
||||
bool HTMLButtonElement::has_activation_behavior() const
|
||||
|
||||
Reference in New Issue
Block a user