{"action":"created","issue":{"url":"https://api.github.com/repos/auto-wcag/auto-wcag/issues/216","repository_url":"https://api.github.com/repos/auto-wcag/auto-wcag","labels_url":"https://api.github.com/repos/auto-wcag/auto-wcag/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/auto-wcag/auto-wcag/issues/216/comments","events_url":"https://api.github.com/repos/auto-wcag/auto-wcag/issues/216/events","html_url":"https://github.com/auto-wcag/auto-wcag/issues/216","id":350837722,"node_id":"MDU6SXNzdWUzNTA4Mzc3MjI=","number":216,"title":"New Rule: Valid use of image file name in accessible name","user":{"login":"Brynanders","id":37368581,"node_id":"MDQ6VXNlcjM3MzY4NTgx","avatar_url":"https://avatars1.githubusercontent.com/u/37368581?v=4","gravatar_id":"","url":"https://api.github.com/users/Brynanders","html_url":"https://github.com/Brynanders","followers_url":"https://api.github.com/users/Brynanders/followers","following_url":"https://api.github.com/users/Brynanders/following{/other_user}","gists_url":"https://api.github.com/users/Brynanders/gists{/gist_id}","starred_url":"https://api.github.com/users/Brynanders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brynanders/subscriptions","organizations_url":"https://api.github.com/users/Brynanders/orgs","repos_url":"https://api.github.com/users/Brynanders/repos","events_url":"https://api.github.com/users/Brynanders/events{/privacy}","received_events_url":"https://api.github.com/users/Brynanders/received_events","type":"User","site_admin":false},"labels":[{"id":1051532509,"node_id":"MDU6TGFiZWwxMDUxNTMyNTA5","url":"https://api.github.com/repos/auto-wcag/auto-wcag/labels/Rule","name":"Rule","color":"e8e23a","default":false}],"state":"closed","locked":false,"assignee":{"login":"kasperisager","id":1174718,"node_id":"MDQ6VXNlcjExNzQ3MTg=","avatar_url":"https://avatars0.githubusercontent.com/u/1174718?v=4","gravatar_id":"","url":"https://api.github.com/users/kasperisager","html_url":"https://github.com/kasperisager","followers_url":"https://api.github.com/users/kasperisager/followers","following_url":"https://api.github.com/users/kasperisager/following{/other_user}","gists_url":"https://api.github.com/users/kasperisager/gists{/gist_id}","starred_url":"https://api.github.com/users/kasperisager/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasperisager/subscriptions","organizations_url":"https://api.github.com/users/kasperisager/orgs","repos_url":"https://api.github.com/users/kasperisager/repos","events_url":"https://api.github.com/users/kasperisager/events{/privacy}","received_events_url":"https://api.github.com/users/kasperisager/received_events","type":"User","site_admin":false},"assignees":[{"login":"kasperisager","id":1174718,"node_id":"MDQ6VXNlcjExNzQ3MTg=","avatar_url":"https://avatars0.githubusercontent.com/u/1174718?v=4","gravatar_id":"","url":"https://api.github.com/users/kasperisager","html_url":"https://github.com/kasperisager","followers_url":"https://api.github.com/users/kasperisager/followers","following_url":"https://api.github.com/users/kasperisager/following{/other_user}","gists_url":"https://api.github.com/users/kasperisager/gists{/gist_id}","starred_url":"https://api.github.com/users/kasperisager/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasperisager/subscriptions","organizations_url":"https://api.github.com/users/kasperisager/orgs","repos_url":"https://api.github.com/users/kasperisager/repos","events_url":"https://api.github.com/users/kasperisager/events{/privacy}","received_events_url":"https://api.github.com/users/kasperisager/received_events","type":"User","site_admin":false},{"login":"Brynanders","id":37368581,"node_id":"MDQ6VXNlcjM3MzY4NTgx","avatar_url":"https://avatars1.githubusercontent.com/u/37368581?v=4","gravatar_id":"","url":"https://api.github.com/users/Brynanders","html_url":"https://github.com/Brynanders","followers_url":"https://api.github.com/users/Brynanders/followers","following_url":"https://api.github.com/users/Brynanders/following{/other_user}","gists_url":"https://api.github.com/users/Brynanders/gists{/gist_id}","starred_url":"https://api.github.com/users/Brynanders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brynanders/subscriptions","organizations_url":"https://api.github.com/users/Brynanders/orgs","repos_url":"https://api.github.com/users/Brynanders/repos","events_url":"https://api.github.com/users/Brynanders/events{/privacy}","received_events_url":"https://api.github.com/users/Brynanders/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-08-15T14:46:51Z","updated_at":"2018-09-18T11:42:37Z","closed_at":"2018-09-18T11:42:37Z","author_association":"COLLABORATOR","body":"---\r\nname: accessible name is image file name\r\ndescription: |\r\n\tThis rule checks that the accessible name of an image is not its file name.\r\n\r\nsuccess_criterion:\r\n- 1.1.1 # Non-text Content\r\n\r\ntest_aspects\r\n- DOM Tree\r\n- CSS Styling\r\n\r\nauthors:\r\n- Bryn Anderson\r\n---\r\n\r\n### Applicability\r\n\r\nThe rule applies to any HTML `img` element that is exposed to assistive technologies, where the element has a non-empty `alt` attribute that is equal to the accessible name of the element, and where the `alt` attribute of the element references the file name and extension of the `src` attribute of the element.\r\n\r\n### Expectation\r\n\r\nEach test target has an `alt` attribute that serves as an appropriate text alternative as described in [F30: Failure of Success Criterion 1.1.1 and 1.2.1 due to using text alternatives that are not alternatives (e.g., filenames or placeholder text)](https://www.w3.org/TR/WCAG20-TECHS/F30.html).\r\n\r\n## Assumptions\r\n\r\n*There are currently no assumptions*\r\n\r\n## Accessibility support\r\n\r\n *There are no major accessibility support issues known for this rule.*\r\n\r\n## Background\r\n\r\n- [Understanding Success Criterion 1.1.1: Non-text Content](https://www.w3.org/WAI/WCAG21/Understanding/non-text-content.html)\r\n- [F30: Failure of Success Criterion 1.1.1 and 1.2.1 due to using text alternatives that are not alternatives (e.g., filenames or placeholder text)](https://www.w3.org/TR/2016/NOTE-WCAG20-TECHS-20161007/F30)\r\n\r\n## Test Cases\r\n\r\n### Pass example 1\r\n\r\nImage depicting a PDF file format, uses the .pdf extension in the accessible name.\r\n\r\n```html\r\n<img scr=\"/example.pdf\" alt=\"an example of a .pdf file\">\r\n```\r\n\r\n### Failure example 1\r\n\r\nThe accessible name is the image file name and does not serve as an appropriate text alternative.\r\n\r\n```html\r\n<img src=\"/image.jpg\" alt=\"image.jpg file\">\r\n```\r\n\r\n### Inapplicable example 1\r\n\r\nNo reference to a file extension or file path in the accessible name.\r\n\r\n```html\r\n<img src=\"/example.pdf\" alt=\"an example of a PDF file\">\r\n```"},"comment":{"url":"https://api.github.com/repos/auto-wcag/auto-wcag/issues/comments/422360423","html_url":"https://github.com/auto-wcag/auto-wcag/issues/216#issuecomment-422360423","issue_url":"https://api.github.com/repos/auto-wcag/auto-wcag/issues/216","id":422360423,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjM2MDQyMw==","user":{"login":"Brynanders","id":37368581,"node_id":"MDQ6VXNlcjM3MzY4NTgx","avatar_url":"https://avatars1.githubusercontent.com/u/37368581?v=4","gravatar_id":"","url":"https://api.github.com/users/Brynanders","html_url":"https://github.com/Brynanders","followers_url":"https://api.github.com/users/Brynanders/followers","following_url":"https://api.github.com/users/Brynanders/following{/other_user}","gists_url":"https://api.github.com/users/Brynanders/gists{/gist_id}","starred_url":"https://api.github.com/users/Brynanders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brynanders/subscriptions","organizations_url":"https://api.github.com/users/Brynanders/orgs","repos_url":"https://api.github.com/users/Brynanders/repos","events_url":"https://api.github.com/users/Brynanders/events{/privacy}","received_events_url":"https://api.github.com/users/Brynanders/received_events","type":"User","site_admin":false},"created_at":"2018-09-18T11:42:37Z","updated_at":"2018-09-18T11:42:37Z","author_association":"COLLABORATOR","body":"Created PR #263"}}
{"actor":{"display_login":"Brynanders"}}