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
parent abc1be5b9e
commit c0d594568d
Notes: sideshowbarker 2024-07-16 22:11:09 +09:00
5 changed files with 84 additions and 2 deletions

View File

@@ -35,8 +35,8 @@ interface HTMLTextAreaElement : HTMLElement {
// FIXME: readonly attribute NodeList labels;
// FIXME: undefined select();
// FIXME: attribute unsigned long selectionStart;
// FIXME: attribute unsigned long selectionEnd;
attribute unsigned long selectionStart;
attribute unsigned long selectionEnd;
// FIXME: attribute DOMString selectionDirection;
// FIXME: undefined setRangeText(DOMString replacement);
// FIXME: undefined setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional SelectionMode selectionMode = "preserve");