1
+/**
2
+ * Copyright 2013-present, Facebook, Inc.
3
+ * All rights reserved.
4
+ *
5
+ * This source code is licensed under the BSD-style license found in the
6
+ * LICENSE file in the root directory of this source tree. An additional grant
7
+ * of patent rights can be found in the PATENTS file in the same directory.
8
+ *
9
+ * @providesModule possibleStandardNames
10
+ */
11
+
12
+var possibleStandardNames = {
13
+ // HTML
14
+ acceptcharset: 'acceptCharset',
15
+ 'accept-charset': 'acceptCharset',
16
+ accesskey: 'accessKey',
17
+ allowfullscreen: 'allowFullScreen',
18
+ allowtransparency: 'allowTransparency',
19
+ autocapitalize: 'autoCapitalize',
20
+ autocomplete: 'autoComplete',
21
+ autocorrect: 'autoCorrect',
22
+ autofocus: 'autoFocus',
23
+ autoplay: 'autoPlay',
24
+ autosave: 'autoSave',
25
+ cellpadding: 'cellPadding',
26
+ cellspacing: 'cellSpacing',
27
+ charset: 'charSet',
28
+ class: 'className',
29
+ classid: 'classID',
30
+ classname: 'className',
31
+ children: 'children',
32
+ colspan: 'colSpan',
33
+ contenteditable: 'contentEditable',
34
+ contextmenu: 'contextMenu',
35
+ controlslist: 'controlsList',
36
+ crossorigin: 'crossOrigin',
37
+ dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
38
+ datetime: 'dateTime',
39
+ defaultvalue: 'defaultValue',
40
+ defaultchecked: 'defaultChecked',
41
+ enctype: 'encType',
42
+ for: 'htmlFor',
43
+ formMethod: 'formMethod',
44
+ formaction: 'formAction',
45
+ formenctype: 'formEncType',
46
+ formnovalidate: 'formNoValidate',
47
+ formtarget: 'formTarget',
48
+ frameborder: 'frameBorder',
49
+ hreflang: 'hrefLang',
50
+ htmlfor: 'htmlFor',
51
+ httpequiv: 'httpEquiv',
52
+ 'http-equiv': 'httpEquiv',
53
+ innerhtml: 'innerHTML',
54
+ inputmode: 'inputMode',
55
+ itemid: 'itemID',
56
+ itemprop: 'itemProp',
57
+ itemref: 'itemRef',
58
+ itemscope: 'itemScope',
59
+ itemtype: 'itemType',
60
+ keyparams: 'keyParams',
61
+ keytype: 'keyType',
62
+ marginWidth: 'marginWidth',
63
+ marginheight: 'marginHeight',
64
+ maxlength: 'maxLength',
65
+ mediagroup: 'mediaGroup',
66
+ minLength: 'minlength',
67
+ novalidate: 'noValidate',
68
+ playsinline: 'playsInline',
69
+ radiogroup: 'radioGroup',
70
+ readonly: 'readOnly',
71
+ referrerpolicy: 'referrerPolicy',
72
+ rowspan: 'rowSpan',
73
+ spellcheck: 'spellCheck',
74
+ srcdoc: 'srcDoc',
75
+ srclang: 'srcLang',
76
+ srcset: 'srcSet',
77
+ tabindex: 'tabIndex',
78
+ usemap: 'useMap',
79
+
80
+ // SVG
81
+ accentheight: 'accentHeight',
82
+ 'accent-height': 'accentHeight',
83
+ alignmentbaseline: 'alignmentBaseline',
84
+ 'alignment-baseline': 'alignmentBaseline',
85
+ allowreorder: 'allowReorder',
86
+ 'arabic-form': 'arabicForm',
87
+ arabicform: 'arabicForm',
88
+ attributename: 'attributeName',
89
+ attributetype: 'attributeType',
90
+ autoreverse: 'autoReverse',
91
+ basefrequency: 'baseFrequency',
92
+ baseprofile: 'baseProfile',
93
+ 'baseline-shift': 'baselineShift',
94
+ baselineshift: 'baselineShift',
95
+ calcmode: 'calcMode',
96
+ 'cap-height': 'capHeight',
97
+ capheight: 'capHeight',
98
+ 'clip-path': 'clipPath',
99
+ clippath: 'clipPath',
100
+ 'clip-rule': 'clipRule',
101
+ cliprule: 'clipRule',
102
+ clippathunits: 'clipPathUnits',
103
+ 'color-interpolation': 'colorInterpolation',
104
+ colorinterpolation: 'colorInterpolation',
105
+ 'color-interpolation-filters': 'colorInterpolationFilters',
106
+ colorinterpolationfilters: 'colorInterpolationFilters',
107
+ 'color-profile': 'colorProfile',
108
+ colorprofile: 'colorProfile',
109
+ 'color-rendering': 'colorRendering',
110
+ colorrendering: 'colorRendering',
111
+ contentscripttype: 'contentScriptType',
112
+ contentstyletype: 'contentStyleType',
113
+ diffuseconstant: 'diffuseConstant',
114
+ 'dominant-baseline': 'dominantBaseline',
115
+ dominantbaseline: 'dominantBaseline',
116
+ edgemode: 'edgeMode',
117
+ 'enable-background': 'enableBackground',
118
+ enablebackground: 'enableBackground',
119
+ externalresourcesrequired: 'externalResourcesRequired',
120
+ 'fill-opacity': 'fillOpacity',
121
+ fillopacity: 'fillOpacity',
122
+ 'fill-rule': 'fillRule',
123
+ fillrule: 'fillRule',
124
+ filterres: 'filterRes',
125
+ filterunits: 'filterUnits',
126
+ floodcolor: 'floodColor',
127
+ 'flood-color': 'floodColor',
128
+ 'flood-opacity': 'floodOpacity',
129
+ floodOpacity: 'floodOpacity',
130
+ 'font-family': 'fontFamily',
131
+ fontfamily: 'fontFamily',
132
+ 'font-size': 'fontSize',
133
+ fontsize: 'fontSize',
134
+ 'font-size-adjust': 'fontSizeAdjust',
135
+ fontsizeadjust: 'fontSizeAdjust',
136
+ 'font-stretch': 'fontStretch',
137
+ fontstretch: 'fontStretch',
138
+ 'font-style': 'fontStyle',
139
+ fontstyle: 'fontStyle',
140
+ 'font-variant': 'fontVariant',
141
+ fontvariant: 'fontVariant',
142
+ 'font-weight': 'fontWeight',
143
+ fontweight: 'fontWeight',
144
+ 'glyph-name': 'glyphName',
145
+ glyphname: 'glyphName',
146
+ 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
147
+ glyphorientationhorizontal: 'glyphOrientationHorizontal',
148
+ 'glyph-orientation-vertical': 'glyphOrientationVertical',
149
+ glyphorientationvertical: 'glyphOrientationVertical',
150
+ glyphref: 'glyphRef',
151
+ gradienttransform: 'gradientTransform',
152
+ gradientunits: 'gradientUnits',
153
+ 'horiz-adv-x': 'horizAdvX',
154
+ horizadvx: 'horizAdvX',
155
+ 'horiz-origin-x': 'horizOriginX',
156
+ horizoriginx: 'horizOriginX',
157
+ 'image-rendering': 'imageRendering',
158
+ imagerendering: 'imageRendering',
159
+ kernelmatrix: 'kernelMatrix',
160
+ kernelunitlength: 'kernelUnitLength',
161
+ keypoints: 'keyPoints',
162
+ keysplines: 'keySplines',
163
+ keytimes: 'keyTimes',
164
+ lengthadjust: 'lengthAdjust',
165
+ 'letter-spacing': 'letterSpacing',
166
+ letterspacing: 'letterSpacing',
167
+ 'lighting-color': 'lightingColor',
168
+ lightingcolor: 'lightingColor',
169
+ limitingconeangle: 'limitingConeAngle',
170
+ 'marker-end': 'markerEnd',
171
+ markerend: 'markerEnd',
172
+ 'marker-mid': 'markerMid',
173
+ markermid: 'markerMid',
174
+ 'marker-start': 'markerStart',
175
+ markerstart: 'markerStart',
176
+ markerheight: 'markerHeight',
177
+ markerunits: 'markerUnits',
178
+ markerwidth: 'markerWidth',
179
+ maskcontentunits: 'maskContentUnits',
180
+ maskunits: 'maskUnits',
181
+ numoctaves: 'numOctaves',
182
+ 'overline-position': 'overlinePosition',
183
+ overlineposition: 'overlinePosition',
184
+ 'overline-thickness': 'overlineThickness',
185
+ overlinethickness: 'overlineThickness',
186
+ 'paint-order': 'paintOrder',
187
+ paintorder: 'paintOrder',
188
+ 'panose-1': 'panose1',
189
+ pathlength: 'pathLength',
190
+ patterncontentunits: 'patternContentUnits',
191
+ patterntransform: 'patternTransform',
192
+ patternunits: 'patternUnits',
193
+ 'pointer-events': 'pointerEvents',
194
+ pointerevents: 'pointerEvents',
195
+ pointsatx: 'pointsAtX',
196
+ pointsaty: 'pointsAtY',
197
+ pointsatz: 'pointsAtZ',
198
+ preservealpha: 'preserveAlpha',
199
+ preserveaspectratio: 'preserveAspectRatio',
200
+ primitiveunits: 'primitiveUnits',
201
+ refx: 'refX',
202
+ refy: 'refY',
203
+ 'rendering-intent': 'renderingIntent',
204
+ renderingintent: 'renderingIntent',
205
+ repeatcount: 'repeatCount',
206
+ repeatdur: 'repeatDur',
207
+ requiredextensions: 'requiredExtensions',
208
+ requiredfeatures: 'requiredFeatures',
209
+ 'shape-rendering': 'shapeRendering',
210
+ shaperendering: 'shapeRendering',
211
+ specularconstant: 'specularConstant',
212
+ specularexponent: 'specularExponent',
213
+ spreadmethod: 'spreadMethod',
214
+ startoffset: 'startOffset',
215
+ stddeviation: 'stdDeviation',
216
+ stitchtiles: 'stitchTiles',
217
+ 'stop-color': 'stopColor',
218
+ stopcolor: 'stopColor',
219
+ stopopacity: 'stopOpacity',
220
+ 'stop-opacity': 'stopOpacity',
221
+ 'strikethrough-position': 'strikethroughPosition',
222
+ strikethroughposition: 'strikethroughPosition',
223
+ strikethroughthickness: 'strikethroughThickness',
224
+ 'strikethrough-thickness': 'strikethroughThickness',
225
+ 'stroke-dasharray': 'strokeDasharray',
226
+ strokedasharray: 'strokeDasharray',
227
+ 'stroke-dashoffset': 'strokeDashoffset',
228
+ strokedashoffset: 'strokeDashoffset',
229
+ 'stroke-linecap': 'strokeLinecap',
230
+ strokelinecap: 'strokeLinecap',
231
+ 'stroke-linejoin': 'strokeLinejoin',
232
+ strokelinejoin: 'strokeLinejoin',
233
+ 'stroke-miterlimit': 'strokeMiterlimit',
234
+ strokemiterlimit: 'strokeMiterlimit',
235
+ 'stroke-opacity': 'strokeOpacity',
236
+ strokeopacity: 'strokeOpacity',
237
+ 'stroke-width': 'strokeWidth',
238
+ suppresscontenteditablewarning: 'suppressContentEditableWarning',
239
+ surfacescale: 'surfaceScale',
240
+ systemlanguage: 'systemLanguage',
241
+ tablevalues: 'tableValues',
242
+ targetx: 'targetX',
243
+ targety: 'targetY',
244
+ 'text-anchor': 'textAnchor',
245
+ textanchor: 'textAnchor',
246
+ 'text-decoration': 'textDecoration',
247
+ textdecoration: 'textDecoration',
248
+ 'text-rendering': 'textRendering',
249
+ textrendering: 'textRendering',
250
+ textlength: 'textLength',
251
+ 'underline-position': 'underlinePosition',
252
+ underlineposition: 'underlinePosition',
253
+ 'underline-thickness': 'underlineThickness',
254
+ underlinethickness: 'underlineThickness',
255
+ 'unicode-bidi': 'unicodeBidi',
256
+ unicodebidi: 'unicodeBidi',
257
+ 'unicode-range': 'unicodeRange',
258
+ unicoderange: 'unicodeRange',
259
+ 'units-per-em': 'unitsPerEm',
260
+ unitsperem: 'unitsPerEm',
261
+ 'v-alphabetic': 'vAlphabetic',
262
+ valphabetic: 'vAlphabetic',
263
+ 'v-hanging': 'vHanging',
264
+ vhanging: 'vHanging',
265
+ 'v-ideographic': 'vIdeographic',
266
+ videographic: 'vIdeographic',
267
+ 'v-mathematical': 'vMathematical',
268
+ vmathematical: 'vMathematical',
269
+ 'vector-effect': 'vectorEffect',
270
+ vectoreffect: 'vectorEffect',
271
+ 'vert-adv-y': 'vertAdvY',
272
+ vertadvy: 'vertAdvY',
273
+ 'vert-origin-x': 'vertOriginX',
274
+ vertoriginx: 'vertOriginX',
275
+ 'vert-origin-y': 'vertOriginY',
276
+ vertoriginy: 'vertOriginY',
277
+ viewbox: 'viewBox',
278
+ viewtarget: 'viewTarget',
279
+ 'word-spacing': 'wordSpacing',
280
+ wordspacing: 'wordSpacing',
281
+ 'writing-mode': 'writingMode',
282
+ writingmode: 'writingMode',
283
+ 'x-height': 'xHeight',
284
+ xheight: 'xHeight',
285
+ xchannelselector: 'xChannelSelector',
286
+ 'xlink:actuate': 'xlinkActuate',
287
+ xlinkactuate: 'xlinkActuate',
288
+ 'xlink:arcrole': 'xlinkArcrole',
289
+ xlinkarcrole: 'xlinkArcrole',
290
+ 'xlink:href': 'xlinkHref',
291
+ xlinkhref: 'xlinkHref',
292
+ 'xlink:role': 'xlinkRole',
293
+ xlinkrole: 'xlinkRole',
294
+ 'xlink:show': 'xlinkShow',
295
+ xlinkshow: 'xlinkShow',
296
+ 'xlink:title': 'xlinkTitle',
297
+ xlinktitle: 'xlinkTitle',
298
+ 'xlink:type': 'xlinkType',
299
+ xlinktype: 'xlinkType',
300
+ 'xml:base': 'xmlBase',
301
+ xmlbase: 'xmlBase',
302
+ 'xmlns:xlink': 'xmlnsXlink',
303
+ xmlnsxlink: 'xmlnsXlink',
304
+ 'xml:lang': 'xmlLang',
305
+ xmllang: 'xmlLang',
306
+ 'xml:space': 'xmlSpace',
307
+ xmlspace: 'xmlSpace',
308
+ ychannelselector: 'yChannelSelector',
309
+ zoomandpan: 'zoomAndPan',
310
+};
311
+
312
+module.exports = possibleStandardNames;