Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelig committed May 5, 2016
1 parent db6b613 commit 91c50ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/rules/inline-script-disabled.js
Expand Up @@ -4,7 +4,7 @@
*/
HTMLHint.addRule({
id: 'inline-script-disabled',
description: 'Inline script cannot be use.',
description: 'Inline script cannot be used.',
init: function(parser, reporter){
var self = this;
parser.addListener('tagstart', function(event){
Expand All @@ -18,11 +18,11 @@ HTMLHint.addRule({
attr = attrs[i];
attrName = attr.name.toLowerCase();
if(reEvent.test(attrName) === true){
reporter.warn('Inline script [ '+attr.raw+' ] cannot be use.', event.line, col + attr.index, self, attr.raw);
reporter.warn('Inline script [ '+attr.raw+' ] cannot be used.', event.line, col + attr.index, self, attr.raw);
}
else if(attrName === 'src' || attrName === 'href'){
if(/^\s*javascript:/i.test(attr.value)){
reporter.warn('Inline script [ '+attr.raw+' ] cannot be use.', event.line, col + attr.index, self, attr.raw);
reporter.warn('Inline script [ '+attr.raw+' ] cannot be used.', event.line, col + attr.index, self, attr.raw);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/rules/inline-style-disabled.js
Expand Up @@ -4,7 +4,7 @@
*/
HTMLHint.addRule({
id: 'inline-style-disabled',
description: 'Inline style cannot be use.',
description: 'Inline style cannot be used.',
init: function(parser, reporter){
var self = this;
parser.addListener('tagstart', function(event){
Expand All @@ -14,7 +14,7 @@ HTMLHint.addRule({
for(var i=0, l=attrs.length;i<l;i++){
attr = attrs[i];
if(attr.name.toLowerCase() === 'style'){
reporter.warn('Inline style [ '+attr.raw+' ] cannot be use.', event.line, col + attr.index, self, attr.raw);
reporter.warn('Inline style [ '+attr.raw+' ] cannot be used.', event.line, col + attr.index, self, attr.raw);
}
}
});
Expand Down

0 comments on commit 91c50ce

Please sign in to comment.