mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 23:30:20 +00: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:
parent
fddbc2e378
commit
4a30446999
Notes:
sideshowbarker
2024-07-17 03:48:55 +09:00
Author: https://github.com/trflynn89
Commit: 4a30446999
Pull-request: https://github.com/SerenityOS/serenity/pull/16276
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 91 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue