LibWeb/HTML: Implement and use "optional value"

Corresponds to f3444c23ff

Also import a test.
This commit is contained in:
Sam Atkins 2025-07-08 11:28:10 +01:00 committed by Tim Ledbetter
commit af17f38bbf
Notes: github-actions[bot] 2025-07-08 16:10:58 +00:00
9 changed files with 228 additions and 7 deletions

View file

@ -80,6 +80,7 @@ public:
String default_value() const { return get_attribute_value(HTML::AttributeNames::value); }
virtual String value() const override;
virtual Optional<String> optional_value() const override;
WebIDL::ExceptionOr<void> set_value(String const&);
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#concept-textarea/input-relevant-value