mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 19:47:17 +02:00
LibWeb: Add textarea value properties
This commit is contained in:
committed by
Andreas Kling
parent
e33ae9a58b
commit
091faf1aae
Notes:
sideshowbarker
2024-07-16 20:08:14 +09:00
Author: https://github.com/bplaat Commit: https://github.com/SerenityOS/serenity/commit/091faf1aae Pull-request: https://github.com/SerenityOS/serenity/pull/22243 Reviewed-by: https://github.com/kalenikaliaksandr Reviewed-by: https://github.com/shannonbooth
@@ -69,11 +69,19 @@ public:
|
||||
// https://www.w3.org/TR/html-aria/#el-textarea
|
||||
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::textbox; }
|
||||
|
||||
String default_value() const;
|
||||
void set_default_value(String const&);
|
||||
|
||||
String value() const override;
|
||||
void set_value(String const&);
|
||||
|
||||
u32 text_length() const;
|
||||
|
||||
unsigned cols() const;
|
||||
WebIDL::ExceptionOr<void> set_cols(unsigned value);
|
||||
WebIDL::ExceptionOr<void> set_cols(unsigned);
|
||||
|
||||
unsigned rows() const;
|
||||
WebIDL::ExceptionOr<void> set_rows(unsigned value);
|
||||
WebIDL::ExceptionOr<void> set_rows(unsigned);
|
||||
|
||||
private:
|
||||
HTMLTextAreaElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
Reference in New Issue
Block a user