Bug 183506 - selectionchange not fired in the last cell if the table has no siblings
Summary: selectionchange not fired in the last cell if the table has no siblings
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: HTML Editing (show other bugs)
Version: Safari 11
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-03-09 02:34 PST by Julen
Modified: 2018-03-11 17:53 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Julen 2018-03-09 02:34:48 PST
The `selectionchange` event is not fired for the latest contenteditable table cell when the table does not contain a sibling element.

Please check the following demo: https://jsfiddle.net/ew84yb2q/7/

Place the cursor in the last table cell (this should already fire a `selectionchange`), then double-click the cell. In the first table, which has no sibling element, the `selectionchange` event is not fired. The second table, which contains a sibling element, fires the `selectionchange` event just as with any other table cell.
Comment 1 Radar WebKit Bug Importer 2018-03-11 17:53:56 PDT
<rdar://problem/38360400>