Bug 264673
| Summary: | Sync 'setSelectionRange' in 'HTMLTextAreaElement.idl' from WebIDL Specification | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | DOM | Assignee: | 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 | ||
Ahmad Saleem
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!
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
EWS
Committed 270605@main (3a15e783eb81): <https://commits.webkit.org/270605@main>
Reviewed commits have been landed. Closing PR #20367 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/118281599>