From 91c50ceee6608cfc0cc5313793ecc654524c0560 Mon Sep 17 00:00:00 2001 From: Kaelig Date: Wed, 4 May 2016 21:02:17 -0700 Subject: [PATCH] Fix typo --- src/rules/inline-script-disabled.js | 6 +++--- src/rules/inline-style-disabled.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/rules/inline-script-disabled.js b/src/rules/inline-script-disabled.js index 175f73969..cbdddd79a 100644 --- a/src/rules/inline-script-disabled.js +++ b/src/rules/inline-script-disabled.js @@ -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){ @@ -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); } } } diff --git a/src/rules/inline-style-disabled.js b/src/rules/inline-style-disabled.js index 7041460e2..b56ce81be 100644 --- a/src/rules/inline-style-disabled.js +++ b/src/rules/inline-style-disabled.js @@ -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){ @@ -14,7 +14,7 @@ HTMLHint.addRule({ for(var i=0, l=attrs.length;i