Skip to content

Commit 2c7a667

Browse files
committed
Fix attributes that should be quoted
1 parent 024a6e6 commit 2c7a667

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/htmltojsx.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var ELEMENT_TAG_NAME_MAPPING = {
4949
canvas: 'canvas',
5050
circle: 'circle',
5151
clippath: 'clipPath',
52-
color-profile: 'color',
52+
'color-profile': 'colorProfile',
5353
cursor: 'cursor',
5454
defs: 'defs',
5555
desc: 'desc',
@@ -82,11 +82,11 @@ var ELEMENT_TAG_NAME_MAPPING = {
8282
feturbulence: 'feTurbulence',
8383
filter: 'filter',
8484
font: 'font',
85-
font-face: 'font',
86-
font-face-format: 'font',
87-
font-face-name: 'font',
88-
font-face-src: 'font',
89-
font-face-uri: 'font',
85+
'font-face': 'fontFace',
86+
'font-face-format': 'fontFaceFormat',
87+
'font-face-name': 'fontFaceName',
88+
'font-face-src': 'fontFaceSrc',
89+
'font-face-uri': 'fontFaceUri',
9090
foreignobject: 'foreignObject',
9191
g: 'g',
9292
glyph: 'glyph',
@@ -105,7 +105,7 @@ var ELEMENT_TAG_NAME_MAPPING = {
105105
meshpatch: 'meshpatch',
106106
meshrow: 'meshrow',
107107
metadata: 'metadata',
108-
missing-glyph: 'missing',
108+
'missing-glyph': 'missingGlyph',
109109
mpath: 'mpath',
110110
path: 'path',
111111
pattern: 'pattern',

0 commit comments

Comments
 (0)