Bug 264673 - Sync 'setSelectionRange' in 'HTMLTextAreaElement.idl' from WebIDL Specification
Summary: Sync 'setSelectionRange' in 'HTMLTextAreaElement.idl' from WebIDL Specification
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar, WPTImpact
Depends on:
Blocks:
 
Reported: 2023-11-11 06:11 PST by Ahmad Saleem
Modified: 2023-11-11 15:53 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2023-11-11 06:11:31 PST
Hi Team,

While going through WPT failures, I noticed that we are failing two test cases:

Test Case: https://wpt.fyi/results/html/dom/idlharness.https.html%3Finclude=HTML.*?label=master&label=experimental&aligned&q=safari%3Afail%20idlharness

>> HTMLTextAreaElement interface: operation setSelectionRange(unsigned long, unsigned long, optional DOMString)	
>> HTMLTextAreaElement interface: calling setSelectionRange(unsigned long, unsigned long, optional DOMString) on document.createElement("textarea") with too few arguments must throw TypeError	

___

Web-Spec: https://html.spec.whatwg.org/multipage/form-elements.html#htmltextareaelement

Current:

[ImplementedAs=setSelectionRangeForBindings] undefined setSelectionRange(optional unsigned long start = 0, optional unsigned long end = 0, optional DOMString direction);

to


[ImplementedAs=setSelectionRangeForBindings] undefined setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);

It compiles and progress both above test cases
____

Just wanted to raise so can fix them.

Thanks!
Comment 1 EWS 2023-11-11 15:52:53 PST
Committed 270605@main (3a15e783eb81): <https://commits.webkit.org/270605@main>

Reviewed commits have been landed. Closing PR #20367 and removing active labels.
Comment 2 Radar WebKit Bug Importer 2023-11-11 15:53:13 PST
<rdar://problem/118281599>