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

Feature/longdesc feature #152

Merged

Conversation

alvaromontoro
Copy link
Contributor

Description

These changes address #108 and #151. Summary of changes:

  • Add warning when longdesc is present
  • Add error when longdesc has some invalid values (empty, containing white spaces, or image urls)
  • Add examples to the demo page
  • Add tests for the new warnings and errors
  • Update the list of codes and features
  • Build the library
  • Switch the order of warnings and errors ([BUG]: Warnings are prioritized over errors #151)

Why is this important?

Longdesc attribute is deprecated and it poses accessibility risks if the value is incorrect (see #108 for more details).

Covered test cases

Tests cases added for:

  • longdesc present (only check if it has a border)
  • longdesc has blank spaces or is empty (invalid, if present it should be an URL)
  • longdesc points to an image URL

Did you test on all major browsers?

  • Chrome
  • Firefox
  • Edge
  • Safari

Other details

This PR also addresses #151


T&Cs

  • I confirm I have read and understand the contributing guidelines
  • I understand the work in this pull request will not be released straight away and will appear in a future release (if approved)
  • I confirm the work in this pull request is true and valid to the best of my knowledge
  • I have updated the README, features.md and codes.md files where applicable

…leo7#151)

These changes address jackdomleo7#108 and jackdomleo7#151. Summary of changes:

- Add warning when longdesc is present
- Add error when longdesc has some invalid values (empty, containing white spaces, or image urls)
- Add examples to the demo page
- Add tests for the new warnings and errors
- Update the list of codes
- Build the library
- Switch the order of warnings and errors (jackdomleo7#151)
@jackdomleo7 jackdomleo7 added a11y feature New feature or request for an a11y check bug Something isn't working quite right labels Dec 11, 2021
Copy link
Owner

@jackdomleo7 jackdomleo7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one @alvaromontoro, thank you!

@jackdomleo7 jackdomleo7 merged commit 861d656 into jackdomleo7:master Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y feature New feature or request for an a11y check bug Something isn't working quite right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Warnings are prioritized over errors Image has a long description attribute
2 participants