[Webkit-unassigned] [Bug 255500] New: getStartPositionOfChar(n) on an element with 'n' characters of text doesn't throw IndexSizeError

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Apr 16 17:17:17 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=255500

            Bug ID: 255500
           Summary: getStartPositionOfChar(n) on an element with 'n'
                    characters of text doesn't throw IndexSizeError
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ahmad.saleem792 at gmail.com
                CC: sabouhallawa at apple.com, zimmermann at kde.org

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!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230417/039661af/attachment-0001.htm>


More information about the webkit-unassigned mailing list