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

Allow for empty alt attributes #717

Merged
merged 3 commits into from
Jul 11, 2022
Merged

Allow for empty alt attributes #717

merged 3 commits into from
Jul 11, 2022

Conversation

gjtorikian
Copy link
Owner

Closes #228.

By default, html-proofer 4.0 will allow tags such as these:

<img alt>
<img alt="">

per the HTML spec. However, a new option, ignore_empty_alt, allows the user to override this and set them as failures. Missing alt tags (<img>) will remain as failures controllable by ignore_missing_alt.

@gjtorikian gjtorikian merged commit fabf7c0 into main Jul 11, 2022
@gjtorikian gjtorikian deleted the alt-in branch July 11, 2022 19:46
johnhaddon added a commit to GafferHQ/gafferhq.github.io that referenced this pull request Jul 29, 2022
This feature was removed in `htmlproofer` 4.0. From the developer :

> This was intentionally removed as part of the html-proofer 4.0 major release. It was removed because, over the years, it has provided more false positives than actual errors. HTML 5 engines in particular are much more forgiving of broken HTML, and so it logging the four or five small errors this check actual looked for was not worth the trouble of maintainence (I'm just one developer). I know of no other tools which duplicate the feature but there might be some W3C validators which run a similar check.

We are much more interested in the link and image validation features, which continue to work.

Also remove `--empty-alt-ignore`, which I believe is now the default behaviour, based on gjtorikian/html-proofer#717.
johnhaddon added a commit to GafferHQ/gafferhq.github.io that referenced this pull request Jul 29, 2022
This feature was removed in `htmlproofer` 4.0. From the developer :

> This was intentionally removed as part of the html-proofer 4.0 major release. It was removed because, over the years, it has provided more false positives than actual errors. HTML 5 engines in particular are much more forgiving of broken HTML, and so it logging the four or five small errors this check actual looked for was not worth the trouble of maintainence (I'm just one developer). I know of no other tools which duplicate the feature but there might be some W3C validators which run a similar check.

We are much more interested in the link and image validation features, which continue to work.

Also remove `--empty-alt-ignore`, which I believe is now the default behaviour, based on gjtorikian/html-proofer#717. And rename `--url-ignore` to `--ignore-urls`, because.
johnhaddon added a commit to GafferHQ/gafferhq.github.io that referenced this pull request Sep 5, 2022
This feature was removed in `htmlproofer` 4.0. From the developer :

> This was intentionally removed as part of the html-proofer 4.0 major release. It was removed because, over the years, it has provided more false positives than actual errors. HTML 5 engines in particular are much more forgiving of broken HTML, and so it logging the four or five small errors this check actual looked for was not worth the trouble of maintainence (I'm just one developer). I know of no other tools which duplicate the feature but there might be some W3C validators which run a similar check.

We are much more interested in the link and image validation features, which continue to work.

Also remove `--empty-alt-ignore`, which I believe is now the default behaviour, based on gjtorikian/html-proofer#717. And rename `--url-ignore` to `--ignore-urls`, because.
johnhaddon added a commit to GafferHQ/gafferhq.github.io that referenced this pull request Sep 14, 2022
This feature was removed in `htmlproofer` 4.0. From the developer :

> This was intentionally removed as part of the html-proofer 4.0 major release. It was removed because, over the years, it has provided more false positives than actual errors. HTML 5 engines in particular are much more forgiving of broken HTML, and so it logging the four or five small errors this check actual looked for was not worth the trouble of maintainence (I'm just one developer). I know of no other tools which duplicate the feature but there might be some W3C validators which run a similar check.

We are much more interested in the link and image validation features, which continue to work.

Also remove `--empty-alt-ignore`, which I believe is now the default behaviour, based on gjtorikian/html-proofer#717. And rename `--url-ignore` to `--ignore-urls`, because.
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.

Empty alt tag
1 participant