WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
248901
Add SelectionMode enum for setRangeText() in HTMLInputElement and HTMLTextAreaElement
https://bugs.webkit.org/show_bug.cgi?id=248901
Summary
Add SelectionMode enum for setRangeText() in HTMLInputElement and HTMLTextAre...
Ahmad Saleem
Reported
2022-12-07 13:16:25 PST
Hi Team, While going through Blink's commit, I came across another potential merge: Blink Commit -
https://src.chromium.org/viewvc/blink?view=revision&revision=199316
Just wanted to raise this bug so this can be tracked. Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
Karl Dubost
Comment 1
2022-12-07 23:40:00 PST
I see the differences in the code and the tests
https://src.chromium.org/viewvc/blink/trunk/LayoutTests/fast/forms/resources/common-setrangetext.js?r1=199316&r2=199315&pathrev=199316
https://searchfox.org/wubkat/rev/e87eb5586000c2885aac4f138e394e8236aab3dd/LayoutTests/fast/forms/resources/common-setrangetext.js#86-89
but at the same time I see all tests passing on WPT.
https://wpt.fyi/results/html/semantics/forms/textfieldselection/textfieldselection-setRangeText.html?label=master&label=experimental&aligned&view=subtest&q=setrangetext
Wenson or Ryosuke might give a informed opinion about it.
Radar WebKit Bug Importer
Comment 2
2022-12-14 13:17:22 PST
<
rdar://problem/103369726
>
Ahmad Saleem
Comment 3
2023-08-30 14:59:38 PDT
I took a test from our tree, which Blink modified via patch and changed in JSFiddle and we pass all tests (have old behavior) while Chrome Canary 118 and Firefox Nightly 118 both fail subset of tests on same error, so we have odd behavior compared to other browsers, so I think we should merge this and align our behavior with other browsers. Adding 'BrowserCompat' tag as well.
Ahmad Saleem
Comment 4
2025-12-14 00:06:20 PST
After updating to latest `common-setrangetext.js` from Blink, we do fail tests:
> fast/forms/search/search-setrangetext.html > fast/forms/setrangetext.html > fast/forms/textarea/textarea-setrangetext.html
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug