[wp-trac] [WordPress Trac] #57301: Emoji feature detection is incorrect

WordPress Trac noreply at wordpress.org
Thu Dec 15 14:34:25 UTC 2022


#57301: Emoji feature detection is incorrect
---------------------------+--------------------------------------
 Reporter:  sergiomdgomes  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Emoji          |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:  javascript, performance
---------------------------+--------------------------------------

Comment (by sergiomdgomes):

 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 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.

 This changes the equation somewhat, and brings some justification to the
 aforementioned comment, but I'm still not entirely sold on the idea of
 expecting contributors to use surrogate pairs instead of simply giving up
 on these browsers.

 That said, I'm happy to move forward with either my latest patch or with
 yours (ideally with the trailing commas removed).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57301#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list