Bug 255500
| Summary: | getStartPositionOfChar(n) on an element with 'n' characters of text doesn't throw IndexSizeError | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | karlcow, sabouhallawa, webkit-bug-importer, zimmermann |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Ahmad Saleem
Hi Team,
This is something needed to align with other browsers and spec:
Chrome Bug - https://bugs.chromium.org/p/chromium/issues/detail?id=391345
Blink Commit - https://src.chromium.org/viewvc/blink?view=revision&revision=201411
Test Case - http://jsfiddle.net/boggydigital/V5Tf8/
When clicking 'getStartPositionOfChar', it shows [object SVGPoint] in Safari 16.4 while gives error in Chrome Canary 114 and Firefox Nightly 114.
Local build by merging commit fixes this.
Raising so can do PR later.
Thanks!
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/108115821>
EWS
Committed 263049@main (25e8d8240b8f): <https://commits.webkit.org/263049@main>
Reviewed commits have been landed. Closing PR #12802 and removing active labels.