From 87b5b7c033db9382e6375d644e0fbc2b213fe5a2 Mon Sep 17 00:00:00 2001 From: Jiwoon-Kim <71701140+Jiwoon-Kim@users.noreply.github.com> Date: Mon, 14 Sep 2026 22:10:27 +0900 Subject: [PATCH] Emoji: Test Emoji 17 support with the correct UTF-16 pair for Hairy Creature. The Emoji 17 support test drew a string written with a five-digit Unicode escape, which JavaScript reads as a lone high surrogate, U+1FAC and the digit 8 rather than U+1FAC8. It renders with an empty center point, so browsers that support Emoji 17 were reported as not supporting it, and every emoji was replaced with images instead of only flags. Follow-up to [61134]. See #66104. --- src/js/_enqueues/lib/emoji-loader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/_enqueues/lib/emoji-loader.js b/src/js/_enqueues/lib/emoji-loader.js index 5bce5aa43a44e..066db8eadb63d 100644 --- a/src/js/_enqueues/lib/emoji-loader.js +++ b/src/js/_enqueues/lib/emoji-loader.js @@ -279,13 +279,13 @@ function browserSupportsEmoji( context, type, emojiSetsRenderIdentically, emojiR * The hairy creature emoji is a single code point emoji. Testing for browser * support required testing the center point of the emoji to see if it is empty. * - * 0xD83E 0x1FAC8 (\uD83E\u1FAC8) == 🫈 Hairy creature. + * U+1FAC8 (\uD83E\uDEC8) == 🫈 Hairy creature. * * When updating this test, please ensure that the emoji is either a single code point * or switch to using the emojiSetsRenderIdentically function and testing with a zero-width * joiner vs a zero-width space. */ - const notSupported = emojiRendersEmptyCenterPoint( context, '\uD83E\u1FAC8' ); + const notSupported = emojiRendersEmptyCenterPoint( context, '\uD83E\uDEC8' ); return ! notSupported; }