mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +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:
parent
0e774fe780
commit
5d5b69578f
Notes:
sideshowbarker
2024-07-16 19:42:24 +09:00
Author: https://github.com/trflynn89
Commit: 5d5b69578f
Pull-request: https://github.com/SerenityOS/serenity/pull/23838
6 changed files with 61 additions and 2 deletions
|
@ -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 };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue