mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
LibWeb: Support displaying HTMLInputElement placeholder values
This adds support for parsing the ::placeholder pseudo-element and injecting an anonymous layout node with that element when the input element's data is empty.
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 03:48:55 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/4a30446999 Pull-request: https://github.com/SerenityOS/serenity/pull/16276 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -66,6 +66,8 @@ public:
|
||||
String value() const;
|
||||
WebIDL::ExceptionOr<void> set_value(String);
|
||||
|
||||
Optional<String> placeholder_value() const;
|
||||
|
||||
bool checked() const { return m_checked; }
|
||||
enum class ChangeSource {
|
||||
Programmatic,
|
||||
|
||||
Reference in New Issue
Block a user