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

Properly ignore alt without ignoring image #327

Merged

Conversation

arvindsv
Copy link
Contributor

@arvindsv arvindsv commented Apr 15, 2016

  • alt_ignore for an image does not ignore the whole image now. If it is missing, it will be reported.
  • Also, this unearthed another issue, where srcset was not properly 'fixed' by prefixing it with http://.

Just so it is clear, without this change, any image that was alt_ignored-d, was ignored here in the checking process, and so, if the image it referred to is missing, the issue wouldn't be added to the final result.

* alt_ignore for an image does not ignore the whole image now. If it is missing, it will
  be reported.
* Also, this unearthed another issue, where srcset was not properly 'fixed' by prefixing
  it with http://.
@arvindsv
Copy link
Contributor Author

By the way, srcset is not properly handled (as far as I can see). srcset can actually have multiple strings, separated by a comma. Ideally, each should be separately checked. Currently, the assumption seems to be that srcset is just like src. So, I've left it like that, and have only corrected the prefixing to match href and src.

@gjtorikian gjtorikian self-assigned this Apr 15, 2016
@gjtorikian
Copy link
Owner

Thank you!

@gjtorikian gjtorikian merged commit 2c13757 into gjtorikian:master Apr 21, 2016
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

Successfully merging this pull request may close these issues.

2 participants