[wp-trac] [WordPress Trac] #37433: Emoji not encoded properly in alt text for images

WordPress Trac noreply at wordpress.org
Thu Jul 21 16:17:00 UTC 2016


#37433: Emoji not encoded properly in alt text for images
-----------------------------+------------------------------
 Reporter:  morganestes      |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Emoji            |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:  has-screenshots  |     Focuses:  accessibility
-----------------------------+------------------------------
Description changed by morganestes:

Old description:

> 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.
>
> 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.

New description:

 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.

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37433#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list