Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#32370 closed defect (bug) (worksforme)

Emojis in screen reader text?

Reported by: pavelevap Owned by:
Priority: normal Milestone:
Component: General Version: 4.2
Severity: normal Keywords: close
Cc: Focuses:

Description

Emojis (and their replacement images) should be part of screen reader text? For example in comments_popup_link() function it is post title. Generated output:

<a href="http://localhost/wordpress/src/emoji-%f0%9f%92%94/#respond">No Comments<span class="screen-reader-text"> on Emoji <img class="emoji" draggable="false" alt="

Attachments (1)

emoji-in-screenreader-text.png​ (54.9 KB ) - added by dd32 12 years ago.

Download all attachments as: .zip

Change History (5)

#1 @dd32
12 years ago

  • Keywords close added

Your code was cut-off, as Trac doesn't support Emoji, uploaded a screenshot of it for you.

But this is correct / by design.

The reasoning is several fold:

  • When used as an alt tag for an image replacement, the emoji is copied instead (ie. when the browser doesn't support native emoji)
  • To replace it with the emoji name would require a several-MB mapping file between all the emoji's and their "descriptive title"
  • Screen readers will need to read the alt text of the emoji replacement (since they can't read the image)
  • Screen readers will need to adjust to read emoji's if they don't already support it

#2 @pavelevap
12 years ago

Thank you for explanation. So, maybe emoji should be stripped from screen reader text?

#3 @helen
12 years ago

  • Milestone Awaiting Review
  • Resolution → worksforme
  • Status new → closed
  • Version trunk → 4.2

Screen readers that haven't already adjusted need to do so. Stripping meaning from alt text seems wrong to me.

#4 @pavelevap
12 years ago

No problem. Screen readers are (or will) probably supporting it somehow, but I was not sure if it is OK, when they are displayed as emoji (in Alt text) and with replacement image as post title?

Note: See TracTickets for help on using tickets.