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

WordPress Trac noreply at wordpress.org
Wed Dec 14 21:07:03 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 dmsnell):

 Not to keep fanning the fire of this discussion, but I see that Chrome and
 Safari have //always// supported full code-point string literals while
 Edge added it in version 12 and Firefox added it in version 40. That's
 pretty old, but still I guess in the same epoch as adding support for
 `fromCodePoint`, though mostly exclusive to Firefox's limitations.

 If we think it's a fair tradeoff to let those pre-Aug. 2015 Firefox
 versions be wrong then I would change my preference to listing the code
 points inside the strings like `\u{1F1F3}` for clarity sake. If we prefer
 avoiding creating unnecessary compatibility issues then I have pushed out
 [https://core.trac.wordpress.org/attachment/ticket/57301/57301-2.diff
 57301-2.diff] as an update.

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


More information about the wp-trac mailing list