[Webkit-unassigned] [Bug 261092] New: Fixed selectionEnd for TextArea with text end in newline

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Sep 3 15:31:04 PDT 2023


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

            Bug ID: 261092
           Summary: Fixed selectionEnd for TextArea with text end in
                    newline
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Keywords: BrowserCompat
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ahmad.saleem792 at gmail.com
                CC: cdumez at apple.com, wenson_hsieh at apple.com

Hi Team,

While going through Blink's bugs, came across another failing test:

Test Case: https://jsfiddle.net/Loascueh/show

^ Chrome Canary 118 and Firefox Nightly 118 passes this test while WebKit ToT fails this.

Blink Commit: https://chromium.googlesource.com/chromium/src.git/+/a5a503556d3fdec80c655ac0830018e9cca4c091

WebKit Source: https://searchfox.org/wubkat/source/Source/WebCore/html/HTMLTextFormControlElement.cpp#713

Local build patch:

 else if (is<HTMLBRElement>(*node) && node != innerText->lastChild())

^ Passes in WebKit Test Runner:

PASS textarea selection index is correct when text ends in newline

Just wanted to raise so we can fix it.

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/20230903/0e539005/attachment-0001.htm>


More information about the webkit-unassigned mailing list