Skip to content

xlink:href becomes xlink::href #314

@edemaine

Description

@edemaine

#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])/?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions