LibWeb: Handle <input> element type changing to the image button state

The spec has special steps specific to the image button state to load
the element's image URL.
This commit is contained in:
Timothy Flynn 2024-04-04 12:56:37 -04:00 committed by Andreas Kling
commit 5d5b69578f
Notes: sideshowbarker 2024-07-16 19:42:24 +09:00
6 changed files with 61 additions and 2 deletions

View file

@ -248,7 +248,7 @@ private:
void handle_maxlength_attribute();
void handle_readonly_attribute(Optional<String> const& value);
WebIDL::ExceptionOr<void> handle_src_attribute(StringView value);
WebIDL::ExceptionOr<void> handle_src_attribute(String const& value);
// https://html.spec.whatwg.org/multipage/input.html#value-sanitization-algorithm
String value_sanitization_algorithm(String const&) const;
@ -309,6 +309,8 @@ private:
TypeAttributeState m_type { TypeAttributeState::Text };
String m_value;
String m_last_src_value;
bool m_has_uncommitted_changes { false };
};