Bug 191024

Summary: Clicking on non-editable element no longer sets selection in iOS 12
Product: WebKit Reporter: Timo Kalliomäki <timoka10+webkit-bugzilla>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: megan_gardner, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 12   
Hardware: iPhone / iPad   
OS: iOS 12   
Attachments:
Description Flags
A document illustrating the broken behavior none

Timo Kalliomäki
Reported 2018-10-29 02:23:38 PDT
Created attachment 353278 [details] A document illustrating the broken behavior iOS 12.0 WebKit 605.1.15, seen on both Safari and Chrome. Expected behavior: when clicking on a selectable but non-editable element, e.g. <p>, a selection of type Caret is set. Actual behavior: no selection is set on iOS 12. Test case: Attached is an HTML document with various elements with an onclick handler which will print a diagnostic regarding the current selection. Expected behavior is that elements BCDE can get a Caret selection (and this is what happens e.g. on desktop Chrome and Android Chrome). However, only the editable DE will. An additional note (I am not sure whether this is the “same bug” or a distinct one): once a selection is set, clicking on a non-selectable element (A) should not change the selection. However, on iOS 12 clicking on a non-selectable element will clear the selection.
Attachments
A document illustrating the broken behavior (908 bytes, text/html)
2018-10-29 02:23 PDT, Timo Kalliomäki
no flags
Radar WebKit Bug Importer
Comment 1 2018-10-29 16:51:48 PDT
Note You need to log in before you can comment on or make changes to this bug.