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

Add test for missing alt text on <input type="img"> #45

Merged
merged 1 commit into from Dec 7, 2016

Conversation

Projects
None yet
2 participants
@lancew
Contributor

lancew commented Jan 2, 2016

Investigation for #38.
This test would suggest that the code already identifies missing
alt tag on a img type input.

Further I ran weblint and this showed correct behavior also: Suggest this test proves that issue 38 could be closed.


$ cat lwtest.html 
<body>
<p>
    <input type="image">
</p>
</body>

$ weblint lwtest.html
lwtest.html (3:5) <input name="" type="image"> does not have non-blank ALT text defined
lwtest.html (5:1) <html> tag is required
lwtest.html (5:1) <head> tag is required
lwtest.html (5:1) <title> tag is required

p.s. Started looking at this as part of the CPAN PRC.

Add test for missing alt text on <input type="img">
Investigation for #38.
This test would suggest that the code already identifies missing
alt tag on a img type input.

@petdance petdance merged commit 2d91cad into petdance:dev Dec 7, 2016

@petdance

This comment has been minimized.

Show comment
Hide comment
@petdance

petdance Dec 7, 2016

Owner

Thanks, e7c34aa.

Owner

petdance commented Dec 7, 2016

Thanks, e7c34aa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment