Bug 264673

Summary: Sync 'setSelectionRange' in 'HTMLTextAreaElement.idl' from WebIDL Specification
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: BrowserCompat, InRadar, WPTImpact
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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>