Issue in Safari where the selection's .focusOffset
exceeds the number of child nodes that .focusNode
has. To reproduce, click in the white area after the word "Editable" and backspace at least twice:
No such problem with contentEditables that are just regular text: