Skip to content

xlink:href becomes xlink::href #314

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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