[Webkit-unassigned] [Bug 177129] New: It is not possible to place collapsed selection at the end of line in contenteditable element with right-click

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 19 03:39:12 PDT 2017


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

            Bug ID: 177129
           Summary: It is not possible to place collapsed selection at the
                    end of line in contenteditable element with
                    right-click
           Product: WebKit
           Version: Safari 10
          Hardware: Unspecified
                OS: macOS 10.12.4
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: j.swiderski at cksource.com
                CC: wenson_hsieh at apple.com

Created attachment 321192

  --> https://bugs.webkit.org/attachment.cgi?id=321192&action=review

HTML page helping to reproduce the problem

1. Open attached file in Safari (Safari should have developer console opened).
2. Right-click (or left-click and then right-click) at the end second line and wait about 5 seconds.
Result: The selection expands to the third line and range API confirms selection is no longer collapsed as start and end containers return different values: 

var r = window.getSelection().getRangeAt(0);
console.log(r.startContainer);
console.log(r.endContainer);

-- 
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/20170919/e5dc6b88/attachment.html>


More information about the webkit-unassigned mailing list