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:
Timothy Flynn 2024-03-14 10:05:07 -04:00 committed by Andreas Kling
commit c0d594568d
Notes: sideshowbarker 2024-07-16 22:11:09 +09:00
5 changed files with 84 additions and 2 deletions

View file

@ -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);