1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 21:55:07 +00:00

LibWeb: Add textarea cols and rows attribute

This commit is contained in:
Bastiaan van der Plaat 2023-11-24 17:39:38 +01:00 committed by Andreas Kling
parent f3db0003c2
commit 7e6fc9c26e
3 changed files with 45 additions and 2 deletions

View file

@ -69,6 +69,12 @@ public:
// https://www.w3.org/TR/html-aria/#el-textarea
virtual Optional<ARIA::Role> default_role() const override { return ARIA::Role::textbox; }
unsigned cols() const;
WebIDL::ExceptionOr<void> set_cols(unsigned value);
unsigned rows() const;
WebIDL::ExceptionOr<void> set_rows(unsigned value);
private:
HTMLTextAreaElement(DOM::Document&, DOM::QualifiedName);