mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibWeb: Add textarea placeholder
This commit is contained in:
committed by
Andreas Kling
parent
091faf1aae
commit
52397d01bd
Notes:
sideshowbarker
2024-07-17 01:28:15 +09:00
Author: https://github.com/bplaat Commit: https://github.com/SerenityOS/serenity/commit/52397d01bd Pull-request: https://github.com/SerenityOS/serenity/pull/22243 Reviewed-by: https://github.com/kalenikaliaksandr Reviewed-by: https://github.com/shannonbooth
@@ -56,6 +56,8 @@ public:
|
||||
virtual bool is_auto_capitalize_inheriting() const override { return true; }
|
||||
|
||||
// ^HTMLElement
|
||||
virtual void attribute_changed(FlyString const&, Optional<String> const&) override;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/forms.html#category-label
|
||||
virtual bool is_labelable() const override { return true; }
|
||||
|
||||
@@ -94,6 +96,10 @@ private:
|
||||
|
||||
void create_shadow_tree_if_needed();
|
||||
|
||||
void update_placeholder_visibility();
|
||||
JS::GCPtr<DOM::Element> m_placeholder_element;
|
||||
JS::GCPtr<DOM::Text> m_placeholder_text_node;
|
||||
|
||||
JS::GCPtr<DOM::Element> m_inner_text_element;
|
||||
JS::GCPtr<DOM::Text> m_text_node;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user