mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +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
|
@ -6,7 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/DeprecatedString.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
|
@ -70,7 +70,7 @@ public:
|
|||
// https://html.spec.whatwg.org/multipage/forms.html#concept-submit-button
|
||||
virtual bool is_submit_button() const { return false; }
|
||||
|
||||
virtual DeprecatedString value() const { return DeprecatedString::empty(); }
|
||||
virtual String value() const { return String {}; }
|
||||
|
||||
virtual HTMLElement& form_associated_element_to_html_element() = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue