| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | exports.__esModule = true;
|
|---|
| 4 | exports.ELEMENT_TAG_NAME_MAPPING = exports.ELEMENT_ATTRIBUTE_MAPPING = exports.ATTRIBUTE_MAPPING = void 0;
|
|---|
| 5 | // From https://raw.githubusercontent.com/facebook/react/master/packages/react-dom/src/shared/possibleStandardNames.js
|
|---|
| 6 | const ATTRIBUTE_MAPPING = {
|
|---|
| 7 | // HTML
|
|---|
| 8 | accept: 'accept',
|
|---|
| 9 | acceptcharset: 'acceptCharset',
|
|---|
| 10 | 'accept-charset': 'acceptCharset',
|
|---|
| 11 | accesskey: 'accessKey',
|
|---|
| 12 | action: 'action',
|
|---|
| 13 | allowfullscreen: 'allowFullScreen',
|
|---|
| 14 | alt: 'alt',
|
|---|
| 15 | as: 'as',
|
|---|
| 16 | async: 'async',
|
|---|
| 17 | autocapitalize: 'autoCapitalize',
|
|---|
| 18 | autocomplete: 'autoComplete',
|
|---|
| 19 | autocorrect: 'autoCorrect',
|
|---|
| 20 | autofocus: 'autoFocus',
|
|---|
| 21 | autoplay: 'autoPlay',
|
|---|
| 22 | autosave: 'autoSave',
|
|---|
| 23 | capture: 'capture',
|
|---|
| 24 | cellpadding: 'cellPadding',
|
|---|
| 25 | cellspacing: 'cellSpacing',
|
|---|
| 26 | challenge: 'challenge',
|
|---|
| 27 | charset: 'charSet',
|
|---|
| 28 | checked: 'checked',
|
|---|
| 29 | children: 'children',
|
|---|
| 30 | cite: 'cite',
|
|---|
| 31 | class: 'className',
|
|---|
| 32 | classid: 'classID',
|
|---|
| 33 | classname: 'className',
|
|---|
| 34 | cols: 'cols',
|
|---|
| 35 | colspan: 'colSpan',
|
|---|
| 36 | content: 'content',
|
|---|
| 37 | contenteditable: 'contentEditable',
|
|---|
| 38 | contextmenu: 'contextMenu',
|
|---|
| 39 | controls: 'controls',
|
|---|
| 40 | controlslist: 'controlsList',
|
|---|
| 41 | coords: 'coords',
|
|---|
| 42 | crossorigin: 'crossOrigin',
|
|---|
| 43 | dangerouslysetinnerhtml: 'dangerouslySetInnerHTML',
|
|---|
| 44 | data: 'data',
|
|---|
| 45 | datetime: 'dateTime',
|
|---|
| 46 | default: 'default',
|
|---|
| 47 | defaultchecked: 'defaultChecked',
|
|---|
| 48 | defaultvalue: 'defaultValue',
|
|---|
| 49 | defer: 'defer',
|
|---|
| 50 | dir: 'dir',
|
|---|
| 51 | disabled: 'disabled',
|
|---|
| 52 | download: 'download',
|
|---|
| 53 | draggable: 'draggable',
|
|---|
| 54 | enctype: 'encType',
|
|---|
| 55 | for: 'htmlFor',
|
|---|
| 56 | form: 'form',
|
|---|
| 57 | formmethod: 'formMethod',
|
|---|
| 58 | formaction: 'formAction',
|
|---|
| 59 | formenctype: 'formEncType',
|
|---|
| 60 | formnovalidate: 'formNoValidate',
|
|---|
| 61 | formtarget: 'formTarget',
|
|---|
| 62 | frameborder: 'frameBorder',
|
|---|
| 63 | headers: 'headers',
|
|---|
| 64 | height: 'height',
|
|---|
| 65 | hidden: 'hidden',
|
|---|
| 66 | high: 'high',
|
|---|
| 67 | href: 'href',
|
|---|
| 68 | hreflang: 'hrefLang',
|
|---|
| 69 | htmlfor: 'htmlFor',
|
|---|
| 70 | httpequiv: 'httpEquiv',
|
|---|
| 71 | 'http-equiv': 'httpEquiv',
|
|---|
| 72 | icon: 'icon',
|
|---|
| 73 | id: 'id',
|
|---|
| 74 | innerhtml: 'innerHTML',
|
|---|
| 75 | inputmode: 'inputMode',
|
|---|
| 76 | integrity: 'integrity',
|
|---|
| 77 | is: 'is',
|
|---|
| 78 | itemid: 'itemID',
|
|---|
| 79 | itemprop: 'itemProp',
|
|---|
| 80 | itemref: 'itemRef',
|
|---|
| 81 | itemscope: 'itemScope',
|
|---|
| 82 | itemtype: 'itemType',
|
|---|
| 83 | keyparams: 'keyParams',
|
|---|
| 84 | keytype: 'keyType',
|
|---|
| 85 | kind: 'kind',
|
|---|
| 86 | label: 'label',
|
|---|
| 87 | lang: 'lang',
|
|---|
| 88 | list: 'list',
|
|---|
| 89 | loop: 'loop',
|
|---|
| 90 | low: 'low',
|
|---|
| 91 | manifest: 'manifest',
|
|---|
| 92 | marginwidth: 'marginWidth',
|
|---|
| 93 | marginheight: 'marginHeight',
|
|---|
| 94 | max: 'max',
|
|---|
| 95 | maxlength: 'maxLength',
|
|---|
| 96 | media: 'media',
|
|---|
| 97 | mediagroup: 'mediaGroup',
|
|---|
| 98 | method: 'method',
|
|---|
| 99 | min: 'min',
|
|---|
| 100 | minlength: 'minLength',
|
|---|
| 101 | multiple: 'multiple',
|
|---|
| 102 | muted: 'muted',
|
|---|
| 103 | name: 'name',
|
|---|
| 104 | nomodule: 'noModule',
|
|---|
| 105 | nonce: 'nonce',
|
|---|
| 106 | novalidate: 'noValidate',
|
|---|
| 107 | open: 'open',
|
|---|
| 108 | optimum: 'optimum',
|
|---|
| 109 | pattern: 'pattern',
|
|---|
| 110 | placeholder: 'placeholder',
|
|---|
| 111 | playsinline: 'playsInline',
|
|---|
| 112 | poster: 'poster',
|
|---|
| 113 | preload: 'preload',
|
|---|
| 114 | profile: 'profile',
|
|---|
| 115 | radiogroup: 'radioGroup',
|
|---|
| 116 | readonly: 'readOnly',
|
|---|
| 117 | referrerpolicy: 'referrerPolicy',
|
|---|
| 118 | rel: 'rel',
|
|---|
| 119 | required: 'required',
|
|---|
| 120 | reversed: 'reversed',
|
|---|
| 121 | role: 'role',
|
|---|
| 122 | rows: 'rows',
|
|---|
| 123 | rowspan: 'rowSpan',
|
|---|
| 124 | sandbox: 'sandbox',
|
|---|
| 125 | scope: 'scope',
|
|---|
| 126 | scoped: 'scoped',
|
|---|
| 127 | scrolling: 'scrolling',
|
|---|
| 128 | seamless: 'seamless',
|
|---|
| 129 | selected: 'selected',
|
|---|
| 130 | shape: 'shape',
|
|---|
| 131 | size: 'size',
|
|---|
| 132 | sizes: 'sizes',
|
|---|
| 133 | span: 'span',
|
|---|
| 134 | spellcheck: 'spellCheck',
|
|---|
| 135 | src: 'src',
|
|---|
| 136 | srcdoc: 'srcDoc',
|
|---|
| 137 | srclang: 'srcLang',
|
|---|
| 138 | srcset: 'srcSet',
|
|---|
| 139 | start: 'start',
|
|---|
| 140 | step: 'step',
|
|---|
| 141 | style: 'style',
|
|---|
| 142 | summary: 'summary',
|
|---|
| 143 | tabindex: 'tabIndex',
|
|---|
| 144 | target: 'target',
|
|---|
| 145 | title: 'title',
|
|---|
| 146 | type: 'type',
|
|---|
| 147 | usemap: 'useMap',
|
|---|
| 148 | value: 'value',
|
|---|
| 149 | width: 'width',
|
|---|
| 150 | wmode: 'wmode',
|
|---|
| 151 | wrap: 'wrap',
|
|---|
| 152 | // SVG
|
|---|
| 153 | about: 'about',
|
|---|
| 154 | accentheight: 'accentHeight',
|
|---|
| 155 | 'accent-height': 'accentHeight',
|
|---|
| 156 | accumulate: 'accumulate',
|
|---|
| 157 | additive: 'additive',
|
|---|
| 158 | alignmentbaseline: 'alignmentBaseline',
|
|---|
| 159 | 'alignment-baseline': 'alignmentBaseline',
|
|---|
| 160 | allowreorder: 'allowReorder',
|
|---|
| 161 | alphabetic: 'alphabetic',
|
|---|
| 162 | amplitude: 'amplitude',
|
|---|
| 163 | arabicform: 'arabicForm',
|
|---|
| 164 | 'arabic-form': 'arabicForm',
|
|---|
| 165 | ascent: 'ascent',
|
|---|
| 166 | attributename: 'attributeName',
|
|---|
| 167 | attributetype: 'attributeType',
|
|---|
| 168 | autoreverse: 'autoReverse',
|
|---|
| 169 | azimuth: 'azimuth',
|
|---|
| 170 | basefrequency: 'baseFrequency',
|
|---|
| 171 | baselineshift: 'baselineShift',
|
|---|
| 172 | 'baseline-shift': 'baselineShift',
|
|---|
| 173 | baseprofile: 'baseProfile',
|
|---|
| 174 | bbox: 'bbox',
|
|---|
| 175 | begin: 'begin',
|
|---|
| 176 | bias: 'bias',
|
|---|
| 177 | by: 'by',
|
|---|
| 178 | calcmode: 'calcMode',
|
|---|
| 179 | capheight: 'capHeight',
|
|---|
| 180 | 'cap-height': 'capHeight',
|
|---|
| 181 | clip: 'clip',
|
|---|
| 182 | clippath: 'clipPath',
|
|---|
| 183 | 'clip-path': 'clipPath',
|
|---|
| 184 | clippathunits: 'clipPathUnits',
|
|---|
| 185 | cliprule: 'clipRule',
|
|---|
| 186 | 'clip-rule': 'clipRule',
|
|---|
| 187 | color: 'color',
|
|---|
| 188 | colorinterpolation: 'colorInterpolation',
|
|---|
| 189 | 'color-interpolation': 'colorInterpolation',
|
|---|
| 190 | colorinterpolationfilters: 'colorInterpolationFilters',
|
|---|
| 191 | 'color-interpolation-filters': 'colorInterpolationFilters',
|
|---|
| 192 | colorprofile: 'colorProfile',
|
|---|
| 193 | 'color-profile': 'colorProfile',
|
|---|
| 194 | colorrendering: 'colorRendering',
|
|---|
| 195 | 'color-rendering': 'colorRendering',
|
|---|
| 196 | contentscripttype: 'contentScriptType',
|
|---|
| 197 | contentstyletype: 'contentStyleType',
|
|---|
| 198 | cursor: 'cursor',
|
|---|
| 199 | cx: 'cx',
|
|---|
| 200 | cy: 'cy',
|
|---|
| 201 | d: 'd',
|
|---|
| 202 | datatype: 'datatype',
|
|---|
| 203 | decelerate: 'decelerate',
|
|---|
| 204 | descent: 'descent',
|
|---|
| 205 | diffuseconstant: 'diffuseConstant',
|
|---|
| 206 | direction: 'direction',
|
|---|
| 207 | display: 'display',
|
|---|
| 208 | divisor: 'divisor',
|
|---|
| 209 | dominantbaseline: 'dominantBaseline',
|
|---|
| 210 | 'dominant-baseline': 'dominantBaseline',
|
|---|
| 211 | dur: 'dur',
|
|---|
| 212 | dx: 'dx',
|
|---|
| 213 | dy: 'dy',
|
|---|
| 214 | edgemode: 'edgeMode',
|
|---|
| 215 | elevation: 'elevation',
|
|---|
| 216 | enablebackground: 'enableBackground',
|
|---|
| 217 | 'enable-background': 'enableBackground',
|
|---|
| 218 | end: 'end',
|
|---|
| 219 | exponent: 'exponent',
|
|---|
| 220 | externalresourcesrequired: 'externalResourcesRequired',
|
|---|
| 221 | fill: 'fill',
|
|---|
| 222 | fillopacity: 'fillOpacity',
|
|---|
| 223 | 'fill-opacity': 'fillOpacity',
|
|---|
| 224 | fillrule: 'fillRule',
|
|---|
| 225 | 'fill-rule': 'fillRule',
|
|---|
| 226 | filter: 'filter',
|
|---|
| 227 | filterres: 'filterRes',
|
|---|
| 228 | filterunits: 'filterUnits',
|
|---|
| 229 | floodopacity: 'floodOpacity',
|
|---|
| 230 | 'flood-opacity': 'floodOpacity',
|
|---|
| 231 | floodcolor: 'floodColor',
|
|---|
| 232 | 'flood-color': 'floodColor',
|
|---|
| 233 | focusable: 'focusable',
|
|---|
| 234 | fontfamily: 'fontFamily',
|
|---|
| 235 | 'font-family': 'fontFamily',
|
|---|
| 236 | fontsize: 'fontSize',
|
|---|
| 237 | 'font-size': 'fontSize',
|
|---|
| 238 | fontsizeadjust: 'fontSizeAdjust',
|
|---|
| 239 | 'font-size-adjust': 'fontSizeAdjust',
|
|---|
| 240 | fontstretch: 'fontStretch',
|
|---|
| 241 | 'font-stretch': 'fontStretch',
|
|---|
| 242 | fontstyle: 'fontStyle',
|
|---|
| 243 | 'font-style': 'fontStyle',
|
|---|
| 244 | fontvariant: 'fontVariant',
|
|---|
| 245 | 'font-variant': 'fontVariant',
|
|---|
| 246 | fontweight: 'fontWeight',
|
|---|
| 247 | 'font-weight': 'fontWeight',
|
|---|
| 248 | format: 'format',
|
|---|
| 249 | from: 'from',
|
|---|
| 250 | fx: 'fx',
|
|---|
| 251 | fy: 'fy',
|
|---|
| 252 | g1: 'g1',
|
|---|
| 253 | g2: 'g2',
|
|---|
| 254 | glyphname: 'glyphName',
|
|---|
| 255 | 'glyph-name': 'glyphName',
|
|---|
| 256 | glyphorientationhorizontal: 'glyphOrientationHorizontal',
|
|---|
| 257 | 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',
|
|---|
| 258 | glyphorientationvertical: 'glyphOrientationVertical',
|
|---|
| 259 | 'glyph-orientation-vertical': 'glyphOrientationVertical',
|
|---|
| 260 | glyphref: 'glyphRef',
|
|---|
| 261 | gradienttransform: 'gradientTransform',
|
|---|
| 262 | gradientunits: 'gradientUnits',
|
|---|
| 263 | hanging: 'hanging',
|
|---|
| 264 | horizadvx: 'horizAdvX',
|
|---|
| 265 | 'horiz-adv-x': 'horizAdvX',
|
|---|
| 266 | horizoriginx: 'horizOriginX',
|
|---|
| 267 | 'horiz-origin-x': 'horizOriginX',
|
|---|
| 268 | ideographic: 'ideographic',
|
|---|
| 269 | imagerendering: 'imageRendering',
|
|---|
| 270 | 'image-rendering': 'imageRendering',
|
|---|
| 271 | in2: 'in2',
|
|---|
| 272 | in: 'in',
|
|---|
| 273 | inlist: 'inlist',
|
|---|
| 274 | intercept: 'intercept',
|
|---|
| 275 | k1: 'k1',
|
|---|
| 276 | k2: 'k2',
|
|---|
| 277 | k3: 'k3',
|
|---|
| 278 | k4: 'k4',
|
|---|
| 279 | k: 'k',
|
|---|
| 280 | kernelmatrix: 'kernelMatrix',
|
|---|
| 281 | kernelunitlength: 'kernelUnitLength',
|
|---|
| 282 | kerning: 'kerning',
|
|---|
| 283 | keypoints: 'keyPoints',
|
|---|
| 284 | keysplines: 'keySplines',
|
|---|
| 285 | keytimes: 'keyTimes',
|
|---|
| 286 | lengthadjust: 'lengthAdjust',
|
|---|
| 287 | letterspacing: 'letterSpacing',
|
|---|
| 288 | 'letter-spacing': 'letterSpacing',
|
|---|
| 289 | lightingcolor: 'lightingColor',
|
|---|
| 290 | 'lighting-color': 'lightingColor',
|
|---|
| 291 | limitingconeangle: 'limitingConeAngle',
|
|---|
| 292 | local: 'local',
|
|---|
| 293 | markerend: 'markerEnd',
|
|---|
| 294 | 'marker-end': 'markerEnd',
|
|---|
| 295 | markerheight: 'markerHeight',
|
|---|
| 296 | markermid: 'markerMid',
|
|---|
| 297 | 'marker-mid': 'markerMid',
|
|---|
| 298 | markerstart: 'markerStart',
|
|---|
| 299 | 'marker-start': 'markerStart',
|
|---|
| 300 | markerunits: 'markerUnits',
|
|---|
| 301 | markerwidth: 'markerWidth',
|
|---|
| 302 | mask: 'mask',
|
|---|
| 303 | maskcontentunits: 'maskContentUnits',
|
|---|
| 304 | maskunits: 'maskUnits',
|
|---|
| 305 | mathematical: 'mathematical',
|
|---|
| 306 | mode: 'mode',
|
|---|
| 307 | numoctaves: 'numOctaves',
|
|---|
| 308 | offset: 'offset',
|
|---|
| 309 | opacity: 'opacity',
|
|---|
| 310 | operator: 'operator',
|
|---|
| 311 | order: 'order',
|
|---|
| 312 | orient: 'orient',
|
|---|
| 313 | orientation: 'orientation',
|
|---|
| 314 | origin: 'origin',
|
|---|
| 315 | overflow: 'overflow',
|
|---|
| 316 | overlineposition: 'overlinePosition',
|
|---|
| 317 | 'overline-position': 'overlinePosition',
|
|---|
| 318 | overlinethickness: 'overlineThickness',
|
|---|
| 319 | 'overline-thickness': 'overlineThickness',
|
|---|
| 320 | paintorder: 'paintOrder',
|
|---|
| 321 | 'paint-order': 'paintOrder',
|
|---|
| 322 | panose1: 'panose1',
|
|---|
| 323 | 'panose-1': 'panose1',
|
|---|
| 324 | pathlength: 'pathLength',
|
|---|
| 325 | patterncontentunits: 'patternContentUnits',
|
|---|
| 326 | patterntransform: 'patternTransform',
|
|---|
| 327 | patternunits: 'patternUnits',
|
|---|
| 328 | pointerevents: 'pointerEvents',
|
|---|
| 329 | 'pointer-events': 'pointerEvents',
|
|---|
| 330 | points: 'points',
|
|---|
| 331 | pointsatx: 'pointsAtX',
|
|---|
| 332 | pointsaty: 'pointsAtY',
|
|---|
| 333 | pointsatz: 'pointsAtZ',
|
|---|
| 334 | prefix: 'prefix',
|
|---|
| 335 | preservealpha: 'preserveAlpha',
|
|---|
| 336 | preserveaspectratio: 'preserveAspectRatio',
|
|---|
| 337 | primitiveunits: 'primitiveUnits',
|
|---|
| 338 | property: 'property',
|
|---|
| 339 | r: 'r',
|
|---|
| 340 | radius: 'radius',
|
|---|
| 341 | refx: 'refX',
|
|---|
| 342 | refy: 'refY',
|
|---|
| 343 | renderingintent: 'renderingIntent',
|
|---|
| 344 | 'rendering-intent': 'renderingIntent',
|
|---|
| 345 | repeatcount: 'repeatCount',
|
|---|
| 346 | repeatdur: 'repeatDur',
|
|---|
| 347 | requiredextensions: 'requiredExtensions',
|
|---|
| 348 | requiredfeatures: 'requiredFeatures',
|
|---|
| 349 | resource: 'resource',
|
|---|
| 350 | restart: 'restart',
|
|---|
| 351 | result: 'result',
|
|---|
| 352 | results: 'results',
|
|---|
| 353 | rotate: 'rotate',
|
|---|
| 354 | rx: 'rx',
|
|---|
| 355 | ry: 'ry',
|
|---|
| 356 | scale: 'scale',
|
|---|
| 357 | security: 'security',
|
|---|
| 358 | seed: 'seed',
|
|---|
| 359 | shaperendering: 'shapeRendering',
|
|---|
| 360 | 'shape-rendering': 'shapeRendering',
|
|---|
| 361 | slope: 'slope',
|
|---|
| 362 | spacing: 'spacing',
|
|---|
| 363 | specularconstant: 'specularConstant',
|
|---|
| 364 | specularexponent: 'specularExponent',
|
|---|
| 365 | speed: 'speed',
|
|---|
| 366 | spreadmethod: 'spreadMethod',
|
|---|
| 367 | startoffset: 'startOffset',
|
|---|
| 368 | stddeviation: 'stdDeviation',
|
|---|
| 369 | stemh: 'stemh',
|
|---|
| 370 | stemv: 'stemv',
|
|---|
| 371 | stitchtiles: 'stitchTiles',
|
|---|
| 372 | stopcolor: 'stopColor',
|
|---|
| 373 | 'stop-color': 'stopColor',
|
|---|
| 374 | stopopacity: 'stopOpacity',
|
|---|
| 375 | 'stop-opacity': 'stopOpacity',
|
|---|
| 376 | strikethroughposition: 'strikethroughPosition',
|
|---|
| 377 | 'strikethrough-position': 'strikethroughPosition',
|
|---|
| 378 | strikethroughthickness: 'strikethroughThickness',
|
|---|
| 379 | 'strikethrough-thickness': 'strikethroughThickness',
|
|---|
| 380 | string: 'string',
|
|---|
| 381 | stroke: 'stroke',
|
|---|
| 382 | strokedasharray: 'strokeDasharray',
|
|---|
| 383 | 'stroke-dasharray': 'strokeDasharray',
|
|---|
| 384 | strokedashoffset: 'strokeDashoffset',
|
|---|
| 385 | 'stroke-dashoffset': 'strokeDashoffset',
|
|---|
| 386 | strokelinecap: 'strokeLinecap',
|
|---|
| 387 | 'stroke-linecap': 'strokeLinecap',
|
|---|
| 388 | strokelinejoin: 'strokeLinejoin',
|
|---|
| 389 | 'stroke-linejoin': 'strokeLinejoin',
|
|---|
| 390 | strokemiterlimit: 'strokeMiterlimit',
|
|---|
| 391 | 'stroke-miterlimit': 'strokeMiterlimit',
|
|---|
| 392 | strokewidth: 'strokeWidth',
|
|---|
| 393 | 'stroke-width': 'strokeWidth',
|
|---|
| 394 | strokeopacity: 'strokeOpacity',
|
|---|
| 395 | 'stroke-opacity': 'strokeOpacity',
|
|---|
| 396 | suppresscontenteditablewarning: 'suppressContentEditableWarning',
|
|---|
| 397 | suppresshydrationwarning: 'suppressHydrationWarning',
|
|---|
| 398 | surfacescale: 'surfaceScale',
|
|---|
| 399 | systemlanguage: 'systemLanguage',
|
|---|
| 400 | tablevalues: 'tableValues',
|
|---|
| 401 | targetx: 'targetX',
|
|---|
| 402 | targety: 'targetY',
|
|---|
| 403 | textanchor: 'textAnchor',
|
|---|
| 404 | 'text-anchor': 'textAnchor',
|
|---|
| 405 | textdecoration: 'textDecoration',
|
|---|
| 406 | 'text-decoration': 'textDecoration',
|
|---|
| 407 | textlength: 'textLength',
|
|---|
| 408 | textrendering: 'textRendering',
|
|---|
| 409 | 'text-rendering': 'textRendering',
|
|---|
| 410 | to: 'to',
|
|---|
| 411 | transform: 'transform',
|
|---|
| 412 | typeof: 'typeof',
|
|---|
| 413 | u1: 'u1',
|
|---|
| 414 | u2: 'u2',
|
|---|
| 415 | underlineposition: 'underlinePosition',
|
|---|
| 416 | 'underline-position': 'underlinePosition',
|
|---|
| 417 | underlinethickness: 'underlineThickness',
|
|---|
| 418 | 'underline-thickness': 'underlineThickness',
|
|---|
| 419 | unicode: 'unicode',
|
|---|
| 420 | unicodebidi: 'unicodeBidi',
|
|---|
| 421 | 'unicode-bidi': 'unicodeBidi',
|
|---|
| 422 | unicoderange: 'unicodeRange',
|
|---|
| 423 | 'unicode-range': 'unicodeRange',
|
|---|
| 424 | unitsperem: 'unitsPerEm',
|
|---|
| 425 | 'units-per-em': 'unitsPerEm',
|
|---|
| 426 | unselectable: 'unselectable',
|
|---|
| 427 | valphabetic: 'vAlphabetic',
|
|---|
| 428 | 'v-alphabetic': 'vAlphabetic',
|
|---|
| 429 | values: 'values',
|
|---|
| 430 | vectoreffect: 'vectorEffect',
|
|---|
| 431 | 'vector-effect': 'vectorEffect',
|
|---|
| 432 | version: 'version',
|
|---|
| 433 | vertadvy: 'vertAdvY',
|
|---|
| 434 | 'vert-adv-y': 'vertAdvY',
|
|---|
| 435 | vertoriginx: 'vertOriginX',
|
|---|
| 436 | 'vert-origin-x': 'vertOriginX',
|
|---|
| 437 | vertoriginy: 'vertOriginY',
|
|---|
| 438 | 'vert-origin-y': 'vertOriginY',
|
|---|
| 439 | vhanging: 'vHanging',
|
|---|
| 440 | 'v-hanging': 'vHanging',
|
|---|
| 441 | videographic: 'vIdeographic',
|
|---|
| 442 | 'v-ideographic': 'vIdeographic',
|
|---|
| 443 | viewbox: 'viewBox',
|
|---|
| 444 | viewtarget: 'viewTarget',
|
|---|
| 445 | visibility: 'visibility',
|
|---|
| 446 | vmathematical: 'vMathematical',
|
|---|
| 447 | 'v-mathematical': 'vMathematical',
|
|---|
| 448 | vocab: 'vocab',
|
|---|
| 449 | widths: 'widths',
|
|---|
| 450 | wordspacing: 'wordSpacing',
|
|---|
| 451 | 'word-spacing': 'wordSpacing',
|
|---|
| 452 | writingmode: 'writingMode',
|
|---|
| 453 | 'writing-mode': 'writingMode',
|
|---|
| 454 | x1: 'x1',
|
|---|
| 455 | x2: 'x2',
|
|---|
| 456 | x: 'x',
|
|---|
| 457 | xchannelselector: 'xChannelSelector',
|
|---|
| 458 | xheight: 'xHeight',
|
|---|
| 459 | 'x-height': 'xHeight',
|
|---|
| 460 | xlinkactuate: 'xlinkActuate',
|
|---|
| 461 | 'xlink:actuate': 'xlinkActuate',
|
|---|
| 462 | xlinkarcrole: 'xlinkArcrole',
|
|---|
| 463 | 'xlink:arcrole': 'xlinkArcrole',
|
|---|
| 464 | xlinkhref: 'xlinkHref',
|
|---|
| 465 | 'xlink:href': 'xlinkHref',
|
|---|
| 466 | xlinkrole: 'xlinkRole',
|
|---|
| 467 | 'xlink:role': 'xlinkRole',
|
|---|
| 468 | xlinkshow: 'xlinkShow',
|
|---|
| 469 | 'xlink:show': 'xlinkShow',
|
|---|
| 470 | xlinktitle: 'xlinkTitle',
|
|---|
| 471 | 'xlink:title': 'xlinkTitle',
|
|---|
| 472 | xlinktype: 'xlinkType',
|
|---|
| 473 | 'xlink:type': 'xlinkType',
|
|---|
| 474 | xmlbase: 'xmlBase',
|
|---|
| 475 | 'xml:base': 'xmlBase',
|
|---|
| 476 | xmllang: 'xmlLang',
|
|---|
| 477 | 'xml:lang': 'xmlLang',
|
|---|
| 478 | xmlns: 'xmlns',
|
|---|
| 479 | 'xml:space': 'xmlSpace',
|
|---|
| 480 | xmlnsxlink: 'xmlnsXlink',
|
|---|
| 481 | 'xmlns:xlink': 'xmlnsXlink',
|
|---|
| 482 | xmlspace: 'xmlSpace',
|
|---|
| 483 | y1: 'y1',
|
|---|
| 484 | y2: 'y2',
|
|---|
| 485 | y: 'y',
|
|---|
| 486 | ychannelselector: 'yChannelSelector',
|
|---|
| 487 | z: 'z',
|
|---|
| 488 | zoomandpan: 'zoomAndPan'
|
|---|
| 489 | };
|
|---|
| 490 | exports.ATTRIBUTE_MAPPING = ATTRIBUTE_MAPPING;
|
|---|
| 491 | const ELEMENT_ATTRIBUTE_MAPPING = {
|
|---|
| 492 | input: {
|
|---|
| 493 | checked: 'defaultChecked',
|
|---|
| 494 | value: 'defaultValue',
|
|---|
| 495 | maxlength: 'maxLength'
|
|---|
| 496 | },
|
|---|
| 497 | form: {
|
|---|
| 498 | enctype: 'encType'
|
|---|
| 499 | }
|
|---|
| 500 | }; // Reference: https://developer.mozilla.org/en-US/docs/Web/SVG/Element#SVG_elements
|
|---|
| 501 |
|
|---|
| 502 | exports.ELEMENT_ATTRIBUTE_MAPPING = ELEMENT_ATTRIBUTE_MAPPING;
|
|---|
| 503 | const ELEMENT_TAG_NAME_MAPPING = {
|
|---|
| 504 | a: 'a',
|
|---|
| 505 | altglyph: 'altGlyph',
|
|---|
| 506 | altglyphdef: 'altGlyphDef',
|
|---|
| 507 | altglyphitem: 'altGlyphItem',
|
|---|
| 508 | animate: 'animate',
|
|---|
| 509 | animatecolor: 'animateColor',
|
|---|
| 510 | animatemotion: 'animateMotion',
|
|---|
| 511 | animatetransform: 'animateTransform',
|
|---|
| 512 | audio: 'audio',
|
|---|
| 513 | canvas: 'canvas',
|
|---|
| 514 | circle: 'circle',
|
|---|
| 515 | clippath: 'clipPath',
|
|---|
| 516 | 'color-profile': 'colorProfile',
|
|---|
| 517 | cursor: 'cursor',
|
|---|
| 518 | defs: 'defs',
|
|---|
| 519 | desc: 'desc',
|
|---|
| 520 | discard: 'discard',
|
|---|
| 521 | ellipse: 'ellipse',
|
|---|
| 522 | feblend: 'feBlend',
|
|---|
| 523 | fecolormatrix: 'feColorMatrix',
|
|---|
| 524 | fecomponenttransfer: 'feComponentTransfer',
|
|---|
| 525 | fecomposite: 'feComposite',
|
|---|
| 526 | feconvolvematrix: 'feConvolveMatrix',
|
|---|
| 527 | fediffuselighting: 'feDiffuseLighting',
|
|---|
| 528 | fedisplacementmap: 'feDisplacementMap',
|
|---|
| 529 | fedistantlight: 'feDistantLight',
|
|---|
| 530 | fedropshadow: 'feDropShadow',
|
|---|
| 531 | feflood: 'feFlood',
|
|---|
| 532 | fefunca: 'feFuncA',
|
|---|
| 533 | fefuncb: 'feFuncB',
|
|---|
| 534 | fefuncg: 'feFuncG',
|
|---|
| 535 | fefuncr: 'feFuncR',
|
|---|
| 536 | fegaussianblur: 'feGaussianBlur',
|
|---|
| 537 | feimage: 'feImage',
|
|---|
| 538 | femerge: 'feMerge',
|
|---|
| 539 | femergenode: 'feMergeNode',
|
|---|
| 540 | femorphology: 'feMorphology',
|
|---|
| 541 | feoffset: 'feOffset',
|
|---|
| 542 | fepointlight: 'fePointLight',
|
|---|
| 543 | fespecularlighting: 'feSpecularLighting',
|
|---|
| 544 | fespotlight: 'feSpotLight',
|
|---|
| 545 | fetile: 'feTile',
|
|---|
| 546 | feturbulence: 'feTurbulence',
|
|---|
| 547 | filter: 'filter',
|
|---|
| 548 | font: 'font',
|
|---|
| 549 | 'font-face': 'fontFace',
|
|---|
| 550 | 'font-face-format': 'fontFaceFormat',
|
|---|
| 551 | 'font-face-name': 'fontFaceName',
|
|---|
| 552 | 'font-face-src': 'fontFaceSrc',
|
|---|
| 553 | 'font-face-uri': 'fontFaceUri',
|
|---|
| 554 | foreignobject: 'foreignObject',
|
|---|
| 555 | g: 'g',
|
|---|
| 556 | glyph: 'glyph',
|
|---|
| 557 | glyphref: 'glyphRef',
|
|---|
| 558 | hatch: 'hatch',
|
|---|
| 559 | hatchpath: 'hatchpath',
|
|---|
| 560 | hkern: 'hkern',
|
|---|
| 561 | iframe: 'iframe',
|
|---|
| 562 | image: 'image',
|
|---|
| 563 | line: 'line',
|
|---|
| 564 | lineargradient: 'linearGradient',
|
|---|
| 565 | marker: 'marker',
|
|---|
| 566 | mask: 'mask',
|
|---|
| 567 | mesh: 'mesh',
|
|---|
| 568 | meshgradient: 'meshgradient',
|
|---|
| 569 | meshpatch: 'meshpatch',
|
|---|
| 570 | meshrow: 'meshrow',
|
|---|
| 571 | metadata: 'metadata',
|
|---|
| 572 | 'missing-glyph': 'missingGlyph',
|
|---|
| 573 | mpath: 'mpath',
|
|---|
| 574 | path: 'path',
|
|---|
| 575 | pattern: 'pattern',
|
|---|
| 576 | polygon: 'polygon',
|
|---|
| 577 | polyline: 'polyline',
|
|---|
| 578 | radialgradient: 'radialGradient',
|
|---|
| 579 | rect: 'rect',
|
|---|
| 580 | script: 'script',
|
|---|
| 581 | set: 'set',
|
|---|
| 582 | solidcolor: 'solidcolor',
|
|---|
| 583 | stop: 'stop',
|
|---|
| 584 | style: 'style',
|
|---|
| 585 | svg: 'svg',
|
|---|
| 586 | switch: 'switch',
|
|---|
| 587 | symbol: 'symbol',
|
|---|
| 588 | text: 'text',
|
|---|
| 589 | textpath: 'textPath',
|
|---|
| 590 | title: 'title',
|
|---|
| 591 | tref: 'tref',
|
|---|
| 592 | tspan: 'tspan',
|
|---|
| 593 | unknown: 'unknown',
|
|---|
| 594 | use: 'use',
|
|---|
| 595 | video: 'video',
|
|---|
| 596 | view: 'view',
|
|---|
| 597 | vkern: 'vkern'
|
|---|
| 598 | };
|
|---|
| 599 | exports.ELEMENT_TAG_NAME_MAPPING = ELEMENT_TAG_NAME_MAPPING; |
|---|