Accessibility Review #34
https://lists.w3.org/Archives/Public/public-apa/2016Jul/0013.html
Hi, Fred:
I have one quick edit relating to image descriptions. I would add the
parenthetical ", where needed," as not all images require a long
description.
Janina
In order to provide a mechanism for supplying image alt text, there needs to be a corresponding parsed result of the alt text in the microformats2 JSON. I've opened an issue there: microformats/microformats2-parsing#2
To document, it looks like twitter uses an metadata creation seperate from the media endpoint. Thus the alt-text is tied directly to the image
https://dev.twitter.com/rest/reference/post/media/metadata/create
By posting html in the content, all accessibility markup can be preserved. If you link to an externally hosted photo by URL this works too.
If you use a media endpoint to upload a photo, then link to that URL in the content, that enables alt and other markup implicitly.
It's not clear in http://micropub.net/draft/#uploading-files if the url given in the multipart section for the uploaded photo can be referred to in the content posted at the same time.
We could amend the media endpoint model to accept other metadata like alt, longdesc etc about the image, but that seems to create more complexity for both clients and servers.
It's not clear in http://micropub.net/draft/#uploading-files if the url given in the multipart section for the uploaded photo can be referred to in the content posted at the same time.
Can you break that out into a new issue? That's worth discussing more.
For reference, that issue is now broken out here: #35
There is currently some brainstorming going on about this issue with the Microformats spec. The current consensus would result in the following Micropub request to create a post with alt text on the photo:
h=entry&
name=Hello+World&
photo[value]=http://example.com/globe.gif&
photo[alt]=spinning+globe+animation
This could then be rendered as the following HTML:
<div class="h-entry">
<p class="p-name">Hello World</p>
<img class="u-photo" src="globe.gif" alt="spinning globe animation">
</div>
https://lists.w3.org/Archives/Public/public-apa/2016Jul/0012.html