Skip to content

Commit 809a25d

Browse files
authored
Merge pull request #1863 from silvenon/meta-charset
Make attribute "charset" valid
2 parents 5709271 + 386efc3 commit 809a25d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/rules/no-unknown-property.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const SVGDOM_ATTRIBUTE_NAMES = {
117117
const DOM_PROPERTY_NAMES = [
118118
// Standard
119119
'acceptCharset', 'accessKey', 'allowFullScreen', 'allowTransparency', 'autoComplete', 'autoFocus', 'autoPlay',
120-
'cellPadding', 'cellSpacing', 'charSet', 'classID', 'className', 'colSpan', 'contentEditable', 'contextMenu',
120+
'cellPadding', 'cellSpacing', 'classID', 'className', 'colSpan', 'contentEditable', 'contextMenu',
121121
'dateTime', 'encType', 'formAction', 'formEncType', 'formMethod', 'formNoValidate', 'formTarget',
122122
'frameBorder', 'hrefLang', 'htmlFor', 'httpEquiv', 'inputMode', 'keyParams', 'keyType', 'marginHeight', 'marginWidth',
123123
'maxLength', 'mediaGroup', 'minLength', 'noValidate', 'onAnimationEnd', 'onAnimationIteration', 'onAnimationStart',

tests/lib/rules/no-unknown-property.js

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ ruleTester.run('no-unknown-property', rule, {
3030
{code: '<App class="bar" />;'},
3131
{code: '<App for="bar" />;'},
3232
{code: '<App accept-charset="bar" />;'},
33+
{code: '<meta charset="utf-8" />;'},
34+
{code: '<meta charSet="utf-8" />;'},
3335
{code: '<App http-equiv="bar" />;'},
3436
{code: '<App xlink:href="bar" />;'},
3537
{code: '<App clip-path="bar" />;'},

0 commit comments

Comments
 (0)