-
-
Notifications
You must be signed in to change notification settings - Fork 95
Closed
Labels
Description
#310 fixes xlinkHref
attributes but breaks xlink:href
by adding another colon:
> require('preact-render-to-string').renderToString({constructor: undefined, type: 'use', props: {'xlink:href': 'hi'}})
'<use xlink::href="hi"></use>'
Perhaps NAMESPACE_REPLACE_REGEX
should just be /^(xlink|xmlns|xml)([A-Z])/
?
rschristian