Make WordPress Core

Changes between Version 4 and Version 5 of Ticket #57301, comment 16


Ignore:
Timestamp:
12/15/2022 02:54:13 PM (3 years ago)
Author:
sergiomdgomes
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57301, comment 16

    v4 v5  
    1 For all my testing above, there is one important thing I forgot to test: `'\u{1f170}'` doesn't work in older browsers, as expected, but unfortunately its failure mode is to produce a full-on syntax error. This is difficult to work around, as parsing happens before execution, and thus it's not something we can reasonably expect to feature-detect.
     1For all my testing above, there is one important thing I forgot to test, and which invalidates some of my earlier points: `'\u{1f170}'` doesn't work in older browsers, as expected, but unfortunately its failure mode is to produce a full-on syntax error. This is difficult to work around, as parsing happens before execution, and thus it's not something we can reasonably expect to feature-detect.
    22
    33This behaviour means that if we were to have `'\u{1f170}'` in the script, then an older browser wouldn't fall back to loading the polyfill, but instead cancel script execution entirely, load nothing, and thus fail to display emoji correctly.