Bug 255500 - getStartPositionOfChar(n) on an element with 'n' characters of text doesn't throw IndexSizeError
Summary: getStartPositionOfChar(n) on an element with 'n' characters of text doesn't t...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2023-04-16 17:17 PDT by Ahmad Saleem
Modified: 2023-04-17 18:18 PDT (History)
4 users (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-04-16 17:17:17 PDT
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!
Comment 1 Radar WebKit Bug Importer 2023-04-16 17:58:00 PDT
<rdar://problem/108115821>
Comment 2 EWS 2023-04-17 18:18:15 PDT
Committed 263049@main (25e8d8240b8f): <https://commits.webkit.org/263049@main>

Reviewed commits have been landed. Closing PR #12802 and removing active labels.