Comments (4)
Interesting! I'll have to muse on this. Have you done this yourself? Do people usually use just alt
, or alt=""
?
I ask because it might be very hard to determine between an empty alt
tag and a missing one.
from html-proofer.
It is usually in the form of alt=""
or alt=" "
.
An example would be:
<img src="my-unrelated-stock-photo.png" alt="" />
I was thinking of a format like this:
HTML::Proofer.new("out/", { :alt_ignore => [ "my-unrelated-stock-photo.png", "my-logo.png" ] })
Then the space or no space value in the alt tag wouldn't be an issue, it would just short-circuit the lint.
from html-proofer.
Ah, okay, cool. I was thinking of passing in an option but matching alt_ignore
the same was as href_ignore
makes more sense.
from html-proofer.
actually, it should be alt=""
because alt=" "
is a non null alt and will not be ignored by assistive technologies
from html-proofer.
Related Issues (20)
- v5 upgrade guide? HOT 1
- Reporting broken links when using relative internal links reported as broken HOT 11
- Fails multi email mailto
- Add --ignore-internal flag HOT 4
- Error for http only sites HOT 5
- allow_missing_href started giving false positives since v4.3 HOT 2
- cyn.eth
- HTTP 302 (to the same URL?) reported as failures HOT 2
- Error during deployment with scheme format HOT 3
- Question - setting up html proofer to skip new pages added to a website which will return a 404 HOT 3
- "ERROR: Invalid predicate" on ugly Maven search URL HOT 2
- Manager
- Small extra hint for beginners HOT 2
- Ruby 3.3.0 parameters bug HOT 3
- CI output disappeared when running htmlproofer, only raw logs show errors HOT 1
- The regex in Attribute::URL.clean_url is very slow for JavaScript bookmarklet URLs HOT 2
- Allow color in non tty shell HOT 7
- Link checker triggered on <a name="..."> and <a id="..."> HOT 6
- Want documentation (or even feature?) to parallelize local scans HOT 1
- Configuration by file? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html-proofer.