Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 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 (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 8 years ago.
screencapture-20160720T162658.png (149.3 KB) - added by morganestes 8 years ago.
screencapture-20160720T163407.png (145.0 KB) - added by morganestes 8 years ago.

Download all attachments as: .zip

Change History (7)

#1 @morganestes
8 years ago

  • Description modified (diff)

#2 @ocean90
8 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
8 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
8 years ago

#37432 was marked as a duplicate.

Note: See TracTickets for help on using tickets.