mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +00:00
LibWeb: Add textarea placeholder
This commit is contained in:
parent
091faf1aae
commit
52397d01bd
6 changed files with 85 additions and 33 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue