mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02:00
LibWeb: Implement input/textarea selection APIs
For both types of elements, `.selectionStart`, `.selectionEnd`, `.selectionDirection`, `.setSelectionRange()`, `.select()` and the `select` event are now implemented. (cherry picked from commit 814ca3267ed73d7ad8492ef69ff87f95240cf922)
This commit is contained in:
committed by
Nico Weber
parent
99262278ea
commit
cb1edae2ca
@@ -34,11 +34,11 @@ interface HTMLTextAreaElement : HTMLElement {
|
||||
|
||||
readonly attribute NodeList labels;
|
||||
|
||||
[FIXME] undefined select();
|
||||
attribute unsigned long selectionStart;
|
||||
attribute unsigned long selectionEnd;
|
||||
[FIXME] attribute DOMString selectionDirection;
|
||||
undefined select();
|
||||
[ImplementedAs=selection_start_binding] attribute unsigned long selectionStart;
|
||||
[ImplementedAs=selection_end_binding] attribute unsigned long selectionEnd;
|
||||
[ImplementedAs=selection_direction_binding] attribute DOMString selectionDirection;
|
||||
[FIXME] undefined setRangeText(DOMString replacement);
|
||||
[FIXME] undefined setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional SelectionMode selectionMode = "preserve");
|
||||
[FIXME] undefined setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
|
||||
undefined setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user