Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#37433 closed defect (bug) (invalid)

Emoji not encoded properly in alt text for images

Reported by: morganestes's profile morganestes Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.6
Component: Emoji Keywords: has-screenshots
Focuses: accessibility Cc:

Description (last modified by morganestes)

When viewing the page source of https://wordpress.org/news/2016/07/wordpress-4-6-beta-4/ (specifically, the emoji item), the alt text of the rendered emoji displays as an empty box, not at all, or the Unicode entity number (depending on the browser) instead of the expected image. Skin tone modifiers display fine, though.

I don't know if that's a flaw in the browser, lack of OS support, or in the html_entity_decode( $emoji ) function call.

This happens for me on OS X 10.11.6 running Chrome 51.0.2704.84 and Safari 9.1.2, and Firefox 47.0.1.

Attachments (3)

screencapture-20160720T150003.png (66.6 KB) - added by morganestes 7 years ago.
Chrome
screencapture-20160720T162658.png (149.3 KB) - added by morganestes 7 years ago.
Safari
screencapture-20160720T163407.png (145.0 KB) - added by morganestes 7 years ago.
Firefox

Download all attachments as: .zip

Change History (7)

#1 @morganestes
7 years ago

  • Description modified (diff)

#2 @ocean90
7 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

That's expected because there is no OS yet which supports native display of Unicode 9 characters.

#3 @pento
7 years ago

It's also worth noting that using the emoji character in the alt attribute (vs a HTML encoded entity, or the emoji description) is a deliberate usability decision in Twemoji.

#4 @afercia
7 years ago

#37432 was marked as a duplicate.

Note: See TracTickets for help on using tickets.