WordPress.org

Make WordPress Core

Opened 10 months ago

Closed 10 months ago

Last modified 10 months ago

#37433 closed defect (bug) (invalid)

Emoji not encoded properly in alt text for images

Reported by: 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 10 months ago.
Chrome
screencapture-20160720T162658.png (149.3 KB) - added by morganestes 10 months ago.
Safari
screencapture-20160720T163407.png (145.0 KB) - added by morganestes 10 months ago.
Firefox

Download all attachments as: .zip

Change History (7)

#1 @morganestes
10 months ago

  • Description modified (diff)

#2 @ocean90
10 months 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
10 months 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
10 months ago

#37432 was marked as a duplicate.

Note: See TracTickets for help on using tickets.