{"action":"created","issue":{"url":"https://api.github.com/repos/openscholar/openscholar/issues/7224","labels_url":"https://api.github.com/repos/openscholar/openscholar/issues/7224/labels{/name}","comments_url":"https://api.github.com/repos/openscholar/openscholar/issues/7224/comments","events_url":"https://api.github.com/repos/openscholar/openscholar/issues/7224/events","html_url":"https://github.com/openscholar/openscholar/issues/7224","id":85621722,"number":7224,"title":"figure element (mis)use for image Descriptions","user":{"login":"openscholar-admin","id":4911725,"avatar_url":"https://avatars.githubusercontent.com/u/4911725?v=3","gravatar_id":"","url":"https://api.github.com/users/openscholar-admin","html_url":"https://github.com/openscholar-admin","followers_url":"https://api.github.com/users/openscholar-admin/followers","following_url":"https://api.github.com/users/openscholar-admin/following{/other_user}","gists_url":"https://api.github.com/users/openscholar-admin/gists{/gist_id}","starred_url":"https://api.github.com/users/openscholar-admin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openscholar-admin/subscriptions","organizations_url":"https://api.github.com/users/openscholar-admin/orgs","repos_url":"https://api.github.com/users/openscholar-admin/repos","events_url":"https://api.github.com/users/openscholar-admin/events{/privacy}","received_events_url":"https://api.github.com/users/openscholar-admin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openscholar/openscholar/labels/status:%20fixed","name":"status: fixed","color":"02e10c"}],"state":"open","locked":false,"assignee":{"login":"digitalpiku","id":4848039,"avatar_url":"https://avatars.githubusercontent.com/u/4848039?v=3","gravatar_id":"","url":"https://api.github.com/users/digitalpiku","html_url":"https://github.com/digitalpiku","followers_url":"https://api.github.com/users/digitalpiku/followers","following_url":"https://api.github.com/users/digitalpiku/following{/other_user}","gists_url":"https://api.github.com/users/digitalpiku/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalpiku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalpiku/subscriptions","organizations_url":"https://api.github.com/users/digitalpiku/orgs","repos_url":"https://api.github.com/users/digitalpiku/repos","events_url":"https://api.github.com/users/digitalpiku/events{/privacy}","received_events_url":"https://api.github.com/users/digitalpiku/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/openscholar/openscholar/milestones/40","html_url":"https://github.com/openscholar/openscholar/milestones/November%209,%202015","labels_url":"https://api.github.com/repos/openscholar/openscholar/milestones/40/labels","id":1338579,"number":40,"title":"November 9, 2015","description":"","creator":{"login":"Bilsi","id":11841641,"avatar_url":"https://avatars.githubusercontent.com/u/11841641?v=3","gravatar_id":"","url":"https://api.github.com/users/Bilsi","html_url":"https://github.com/Bilsi","followers_url":"https://api.github.com/users/Bilsi/followers","following_url":"https://api.github.com/users/Bilsi/following{/other_user}","gists_url":"https://api.github.com/users/Bilsi/gists{/gist_id}","starred_url":"https://api.github.com/users/Bilsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bilsi/subscriptions","organizations_url":"https://api.github.com/users/Bilsi/orgs","repos_url":"https://api.github.com/users/Bilsi/repos","events_url":"https://api.github.com/users/Bilsi/events{/privacy}","received_events_url":"https://api.github.com/users/Bilsi/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":27,"state":"open","created_at":"2015-10-05T16:17:53Z","updated_at":"2015-11-12T20:33:25Z","due_on":null,"closed_at":null},"comments":16,"created_at":"2015-06-05T20:06:28Z","updated_at":"2015-11-13T16:38:59Z","closed_at":null,"body":"[View or participate in the full discussion on our Community website](http://getsatisfaction.com/openscholar/topics/figure-element-mis-use-for-image-descriptions)\n\n**The Plan**\n\nCorrect the markup output around user entered inline images when the description field is used. The result will be proper use of the figure/figcaption tags.\n\n**Description**\n\nWhen an image file has a Description and is inserted in a page, the description is displayed above the image and is contained within a figure element. Having a visible caption paired with an image is a desirable feature but this is an incorrect use of the figure element.\n\n\nThe img element should be within the figure element, not preceded by it. The Description text displayed as a caption should also be within the figure element but also within a figcaption element. Additional block elements like a paragraph element are unnecessary but not prohibited.\n\n\nTheoretically, an img element could omit the alt attribute when it is within a figure that contains a figcaption. However, Internet Explorer 11 \"provides no semantic information via accessibility APIs\" for figure or figcaption elements. Additionally, there are differences of opinion about whether captions, as they are commonly written, are sufficiently descriptive of image contents. Therefore, best practice is for img elements to have alt text even when contained within a figure with a figcaption (title attributes on images or parent elements are often not an accessibility aid, can't themselves be accessed, and should be considered an optional supplement).\n\n\n[https://developer.mozilla.org/en-US/d...](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure) \n\n\n[https://developer.mozilla.org/en-US/d...](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption) \n\n\n[http://www.html5accessibility.com](http://www.html5accessibility.com)"},"comment":{"url":"https://api.github.com/repos/openscholar/openscholar/issues/comments/156482418","html_url":"https://github.com/openscholar/openscholar/issues/7224#issuecomment-156482418","issue_url":"https://api.github.com/repos/openscholar/openscholar/issues/7224","id":156482418,"user":{"login":"tcheng001","id":2111600,"avatar_url":"https://avatars.githubusercontent.com/u/2111600?v=3","gravatar_id":"","url":"https://api.github.com/users/tcheng001","html_url":"https://github.com/tcheng001","followers_url":"https://api.github.com/users/tcheng001/followers","following_url":"https://api.github.com/users/tcheng001/following{/other_user}","gists_url":"https://api.github.com/users/tcheng001/gists{/gist_id}","starred_url":"https://api.github.com/users/tcheng001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tcheng001/subscriptions","organizations_url":"https://api.github.com/users/tcheng001/orgs","repos_url":"https://api.github.com/users/tcheng001/repos","events_url":"https://api.github.com/users/tcheng001/events{/privacy}","received_events_url":"https://api.github.com/users/tcheng001/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T16:38:58Z","updated_at":"2015-11-13T16:38:58Z","body":"Mark \"Fixed\"\r\n1) Now, \"Embedded Media\" replaced \"HTML\" in the file type list in /cp/content/files page.\r\n2) the filter works as expected\r\n3) other file type filter also work as before\r\n![screen shot 2015-11-13 at 11 34 33 am](https://cloud.githubusercontent.com/assets/2111600/11151437/16eef98a-89fb-11e5-977e-db56547d7668.png)\r\n\r\n"}}