mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Partially implement <textarea>'s selectionStart and selectionEnd
This implementation pretends we never have a selection. GitHub relies on these values to know where to insert text corresponding to file uploads.
This commit is contained in:
parent
abc1be5b9e
commit
c0d594568d
Notes:
sideshowbarker
2024-07-16 22:11:09 +09:00
Author: https://github.com/trflynn89
Commit: c0d594568d
Pull-request: https://github.com/SerenityOS/serenity/pull/23586
5 changed files with 84 additions and 2 deletions
|
@ -84,6 +84,12 @@ public:
|
|||
bool report_validity();
|
||||
void set_custom_validity(String const& error);
|
||||
|
||||
WebIDL::UnsignedLong selection_start() const;
|
||||
WebIDL::ExceptionOr<void> set_selection_start(WebIDL::UnsignedLong);
|
||||
|
||||
WebIDL::UnsignedLong selection_end() const;
|
||||
WebIDL::ExceptionOr<void> set_selection_end(WebIDL::UnsignedLong);
|
||||
|
||||
WebIDL::Long max_length() const;
|
||||
WebIDL::ExceptionOr<void> set_max_length(WebIDL::Long);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue