mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 20:42:21 +00:00
LibWeb: Implement setRangeText for input and textarea elements
This method replaces range of text in its respective element with a new string
This commit is contained in:
parent
206262cd55
commit
2f5b070716
Notes:
github-actions[bot]
2024-08-31 09:50:48 +00:00
Author: https://github.com/tcl3
Commit: 2f5b070716
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1223
Reviewed-by: https://github.com/awesomekling
10 changed files with 217 additions and 4 deletions
|
@ -0,0 +1,13 @@
|
|||
Calling setRangeText() on an element where setRangeText doesn't apply throws: InvalidStateError
|
||||
setRangeText("foo") on: textarea - Value: foo
|
||||
setRangeText("foo", 1, 3) on: textarea - Value: tfoot
|
||||
setRangeText("foo") on: password - Value: footest
|
||||
setRangeText("foo", 1, 3) on: passwordInput - Value: tfoot
|
||||
setRangeText("foo") on: search - Value: footest
|
||||
setRangeText("foo", 1, 3) on: searchInput - Value: tfoot
|
||||
setRangeText("foo") on: tel - Value: footest
|
||||
setRangeText("foo", 1, 3) on: telInput - Value: tfoot
|
||||
setRangeText("foo") on: text - Value: footest
|
||||
setRangeText("foo", 1, 3) on: textInput - Value: tfoot
|
||||
setRangeText("foo") on: url - Value: footest
|
||||
setRangeText("foo", 1, 3) on: urlInput - Value: tfoot
|
Loading…
Add table
Add a link
Reference in a new issue