diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-01-13 11:43:01 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-15 01:00:20 +0000 |
commit | 8a88d4434f9aa5f2279791f81efd18397749e034 (patch) | |
tree | 059b2d0e155d43c60c50280f9d42b1a025c1e7cb /Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp | |
parent | c79d20be58a15aaf0285de65f0c4e0263c105f2c (diff) | |
download | serenity-8a88d4434f9aa5f2279791f81efd18397749e034.zip |
LibJS+LibWeb: Rename number_to_string to number_to_deprecated_string
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp index ef6a08ef94..242de50fc0 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLInputElement.cpp @@ -728,7 +728,7 @@ DeprecatedString HTMLInputElement::value_sanitization_algorithm(DeprecatedString // https://html.spec.whatwg.org/multipage/input.html#range-state-(type=range):value-sanitization-algorithm auto maybe_double = value.to_double(TrimWhitespace::Yes); if (!maybe_double.has_value() || !isfinite(maybe_double.value())) - return JS::number_to_string(maybe_double.value_or(0)); + return JS::number_to_deprecated_string(maybe_double.value_or(0)); } else if (type_state() == HTMLInputElement::TypeAttributeState::Color) { // https://html.spec.whatwg.org/multipage/input.html#color-state-(type=color):value-sanitization-algorithm // If the value of the element is a valid simple color, then set it to the value of the element converted to ASCII lowercase; |