WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #39837, comment 3


Ignore:
Timestamp:
07/03/2019 09:58:35 AM (15 months ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39837, comment 3

    initial v1  
    11> there are five spaces in the broken code that are actually non-breaking spaces
    22
    3 Yes, this is the same feature (bug) in the browsers trying to keep empty spaces typed by the user in contenteditable. In some cases and in some browsers these invisible non-breaking spaces are inserted at many different places. Unfortunately it is impossible to "guess" whether the user intended to insert a ` ` or the browser just added it, so fixing this is pretty hard/prone to edge cases.
     3Yes, this is the same feature (bug) in the browsers trying to keep empty spaces typed by the user in contenteditable. In some cases and in some browsers these invisible non-breaking spaces are inserted at many different places. Unfortunately it is impossible to "guess" whether the user intended to insert a ` ` or the browser just added it, so fixing this is pretty hard/prone to errors and edge cases.
    44
    55This works much better in the block editor now. Closing as worksforme as it is the expected browser behaviour in contenteditable. Feel free to reopen with ideas about how to make it better in the classic editor, if still needed.