mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 23:15:08 +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:
parent
6c9fffc4c1
commit
e3bc8610a9
6 changed files with 70 additions and 74 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue