WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #34939, comment 22


Ignore:
Timestamp:
12/21/2015 09:09:37 PM (6 years ago)
Author:
Otto42
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34939, comment 22

    initial v1  
    1212TinyMCE has a habit of converting spaces (0x20) into non-breaking spaces (0xa0). It's done this for quite a while. Reproducing it is easy: type in a number of spaces in a row. Every other one will become a non-breaking space (0xa0).
    1313
    14 The regular expression pointed out by @dd32 above does not recognize 0xa0 as valid separators. Seems like either 0xa0 should be added as a possible character not allowed in an shortcode/attribute name in order to prevent this issue, or the expressions reconsidered entirely.
     14The regular expression pointed out by @dd32 above does not recognize 0xa0 as valid separators. Seems like either 0xa0 should be added as a possible character not allowed in an shortcode/attribute name in order to prevent this issue, or the expressions reconsidered entirely, or just have a mass-replace on the shortcode as-a-whole to eliminate any 0xa0's by converting them to 0x20's.
     15