Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alt attribute should contain the Unicode emoji #4

Open
Crissov opened this issue Nov 13, 2018 · 0 comments
Open

alt attribute should contain the Unicode emoji #4

Crissov opened this issue Nov 13, 2018 · 0 comments

Comments

@Crissov
Copy link

Crissov commented Nov 13, 2018

The alt attribute should contain the Unicode emoji and only that, the current descriptive text may be used in the title attribute.

<g-emoji fallback-src="t-rex.png" alias="T-Rex">🦖</g-emoji>

currently yields

<g-emoji fallback-src="t-rex.png" alias="T-Rex">
  <img class="emoji" alt="T-Rex" height="20" width="20" src="t-rex.png">
</g-emoji>

but should result in

<g-emoji fallback-src="t-rex.png" alias="T-Rex">
  <img class="emoji" alt="🦖" title="T-Rex" height="20" width="20" src="t-rex.png">
</g-emoji>

I noticed this problem when trying to copy and paste rendered comments where I did not get the emoji as expected even though the other environment supported emojis.

Crissov added a commit to Crissov/g-emoji-element that referenced this issue Nov 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant