Skip to content

Commit

Permalink
Fixed message
Browse files Browse the repository at this point in the history
  • Loading branch information
takenspc committed Jul 28, 2014
1 parent e25f187 commit 0090a35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rules/alt-not-empty.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
HTMLHint.addRule({
id: 'alt-not-empty',
description: 'Alt of input[type=image], area[href] must set value.',
description: 'Alt of area[href] and input[type=image] must set value.',
init: function(parser, reporter){
var self = this;
parser.addListener('tagstart', function(event){
Expand All @@ -26,7 +26,7 @@ HTMLHint.addRule({
(tagName === 'input' && attrMap['type'] === 'image')) {
selector = tagName === 'area' ? 'area[href]' : 'input[type=image]';
if (!('alt' in attrMap) || attrMap['alt'] === '') {
reporter.warn('Alt of ' + tagName + ' must be set value.', event.line, col, self, event.raw);
reporter.warn('Alt of ' + selector + ' must be set value.', event.line, col, self, event.raw);
}
}
});
Expand Down

0 comments on commit 0090a35

Please sign in to comment.