mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-01 20:07:38 +02:00
LibWeb: Recreate the <input> shadow tree when the type attribute changes
This is often used on login forms, for example, to toggle the visibility of a password. The site will change the <input> element's type to "text" to allow the password to show.
This commit is contained in:
committed by
Andreas Kling
parent
06a3ca734e
commit
0e774fe780
@@ -265,6 +265,7 @@ private:
|
||||
JS::GCPtr<DOM::Element> m_placeholder_element;
|
||||
JS::GCPtr<DOM::Text> m_placeholder_text_node;
|
||||
|
||||
void update_text_input_shadow_tree();
|
||||
JS::GCPtr<DOM::Element> m_inner_text_element;
|
||||
JS::GCPtr<DOM::Text> m_text_node;
|
||||
bool m_checked { false };
|
||||
|
||||
Reference in New Issue
Block a user