mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
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:
committed by
Andreas Kling
parent
0e774fe780
commit
5d5b69578f
@@ -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 };
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user