Open chrisv2 opened 6 years ago
Can confirm, clipPathUnits gets rendered as clip-pathunits.
Hmm - it looks like the regex that is handling clipPathUnits
is missing /g
, so it only replaces the first uppercase character:
Is there a temporary workaround until this is fixed?
@ikoruk this bit me today. With the g
flag it gets converted to kebab which isn't the solution as far as I can tell with. Is there a way to denylist certain attributes, or svg attributes as a whole? I'm not super familiar with the internals.
textLenght
is a valid attribute onsvg:tspan
andsvg:text
: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/textLengthUnfortunately,
textLength
gets kebap-cased totext-length
because it matches the CAMEL_PROPS regex.Comparing with the SVG attribute reference, the following attributes are likely affected:
clipPathUnits
glyphRef
markerHeight
,markerUnit
,markerWidth
textLength
xChannelSelector