Skip to content

Commit a566536

Browse files
committed
Update SVG and DOM attribute list for no-unknown-property
1 parent 34c8a10 commit a566536

File tree

1 file changed

+66
-7
lines changed

1 file changed

+66
-7
lines changed

lib/rules/no-unknown-property.js

Lines changed: 66 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,78 @@ var DOM_ATTRIBUTE_NAMES = {
2222
};
2323

2424
var SVGDOM_ATTRIBUTE_NAMES = {
25+
'accent-height': 'accentHeight',
26+
'alignment-baseline': 'alignmentBaseline',
27+
'arabic-form': 'arabicForm',
28+
'baseline-shift': 'baselineShift',
29+
'cap-height': 'capHeight',
2530
'clip-path': 'clipPath',
31+
'clip-rule': 'clipRule',
32+
'color-interpolation': 'colorInterpolation',
33+
'color-interpolation-filters': 'colorInterpolationFilters',
34+
'color-profile': 'colorProfile',
35+
'color-rendering': 'colorRendering',
36+
'dominant-baseline': 'dominantBaseline',
37+
'enable-background': 'enableBackground',
2638
'fill-opacity': 'fillOpacity',
39+
'fill-rule': 'fillRule',
40+
'flood-color': 'floodColor',
41+
'flood-opacity': 'floodOpacity',
2742
'font-family': 'fontFamily',
2843
'font-size': 'fontSize',
44+
'font-size-adjust': 'fontSizeAdjust',
45+
'font-stretch': 'fontStretch',
46+
'font-style': 'fontStyle',
47+
'font-variant': 'fontVariant',
48+
'font-weight': 'fontWeight',
49+
'glyph-name': 'glyphName',
50+
'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
51+
'glyph-orientation-vertical': 'glyphOrientationVertical',
52+
'horiz-adv-x': 'horizAdvX',
53+
'horiz-origin-x': 'horizOriginX',
54+
'image-rendering': 'imageRendering',
55+
'letter-spacing': 'letterSpacing',
56+
'lighting-color': 'lightingColor',
2957
'marker-end': 'markerEnd',
3058
'marker-mid': 'markerMid',
3159
'marker-start': 'markerStart',
60+
'overline-position': 'overlinePosition',
61+
'overline-thickness': 'overlineThickness',
62+
'paint-order': 'paintOrder',
63+
'panose-1': 'panose1',
64+
'pointer-events': 'pointerEvents',
65+
'rendering-intent': 'renderingIntent',
66+
'shape-rendering': 'shapeRendering',
3267
'stop-color': 'stopColor',
3368
'stop-opacity': 'stopOpacity',
69+
'strikethrough-position': 'strikethroughPosition',
70+
'strikethrough-thickness': 'strikethroughThickness',
3471
'stroke-dasharray': 'strokeDasharray',
72+
'stroke-dashoffset': 'strokeDashoffset',
3573
'stroke-linecap': 'strokeLinecap',
74+
'stroke-linejoin': 'strokeLinejoin',
75+
'stroke-miterlimit': 'strokeMiterlimit',
3676
'stroke-opacity': 'strokeOpacity',
3777
'stroke-width': 'strokeWidth',
3878
'text-anchor': 'textAnchor',
79+
'text-decoration': 'textDecoration',
80+
'text-rendering': 'textRendering',
81+
'underline-position': 'underlinePosition',
82+
'underline-thickness': 'underlineThickness',
83+
'unicode-bidi': 'unicodeBidi',
84+
'unicode-range': 'unicodeRange',
85+
'units-per-em': 'unitsPerEm',
86+
'v-alphabetic': 'vAlphabetic',
87+
'v-hanging': 'vHanging',
88+
'v-ideographic': 'vIdeographic',
89+
'v-mathematical': 'vMathematical',
90+
'vector-effect': 'vectorEffect',
91+
'vert-adv-y': 'vertAdvY',
92+
'vert-origin-x': 'vertOriginX',
93+
'vert-origin-y': 'vertOriginY',
94+
'word-spacing': 'wordSpacing',
95+
'writing-mode': 'writingMode',
96+
'x-height': 'xHeight',
3997
'xlink:actuate': 'xlinkActuate',
4098
'xlink:arcrole': 'xlinkArcrole',
4199
'xlink:href': 'xlinkHref',
@@ -53,13 +111,14 @@ var DOM_PROPERTY_NAMES = [
53111
'acceptCharset', 'accessKey', 'allowFullScreen', 'allowTransparency', 'autoComplete', 'autoFocus', 'autoPlay',
54112
'cellPadding', 'cellSpacing', 'charSet', 'classID', 'className', 'colSpan', 'contentEditable', 'contextMenu',
55113
'crossOrigin', 'dateTime', 'encType', 'formAction', 'formEncType', 'formMethod', 'formNoValidate', 'formTarget',
56-
'frameBorder', 'hrefLang', 'htmlFor', 'httpEquiv', 'marginHeight', 'marginWidth', 'maxLength', 'mediaGroup',
57-
'noValidate', 'onBlur', 'onChange', 'onClick', 'onContextMenu', 'onCopy', 'onCut', 'onDoubleClick',
58-
'onDrag', 'onDragEnd', 'onDragEnter', 'onDragExit', 'onDragLeave', 'onDragOver', 'onDragStart', 'onDrop',
59-
'onFocus', 'onInput', 'onKeyDown', 'onKeyPress', 'onKeyUp', 'onMouseDown', 'onMouseEnter', 'onMouseLeave',
60-
'onMouseMove', 'onMouseOut', 'onMouseOver', 'onMouseUp', 'onPaste', 'onScroll', 'onSubmit', 'onTouchCancel',
61-
'onTouchEnd', 'onTouchMove', 'onTouchStart', 'onWheel',
62-
'radioGroup', 'readOnly', 'rowSpan', 'spellCheck', 'srcDoc', 'srcSet', 'tabIndex', 'useMap',
114+
'frameBorder', 'hrefLang', 'htmlFor', 'httpEquiv', 'inputMode', 'keyParams', 'keyType', 'marginHeight', 'marginWidth',
115+
'maxLength', 'mediaGroup', 'minLength', 'noValidate', 'onAnimationEnd', 'onAnimationIteration', 'onAnimationStart',
116+
'onBlur', 'onChange', 'onClick', 'onContextMenu', 'onCopy', 'onCompositionEnd', 'onCompositionStart',
117+
'onCompositionUpdate', 'onCut', 'onDoubleClick', 'onDrag', 'onDragEnd', 'onDragEnter', 'onDragExit', 'onDragLeave',
118+
'onError', 'onFocus', 'onInput', 'onKeyDown', 'onKeyPress', 'onKeyUp', 'onLoad', 'onWheel', 'onDragOver',
119+
'onDragStart', 'onDrop', 'onMouseDown', 'onMouseEnter', 'onMouseLeave', 'onMouseMove', 'onMouseOut', 'onMouseOver',
120+
'onMouseUp', 'onPaste', 'onScroll', 'onSelect', 'onSubmit', 'onTransitionEnd', 'radioGroup', 'readOnly', 'rowSpan',
121+
'spellCheck', 'srcDoc', 'srcLang', 'srcSet', 'tabIndex', 'useMap',
63122
// Non standard
64123
'autoCapitalize', 'autoCorrect',
65124
'autoSave',

0 commit comments

Comments
 (0)