Skip to content

xlinkHref isn't interpreted as source for <image /> in SVGs #722

@peterfritz

Description

@peterfritz

Bug report

Description / Observed Behavior

Using namespaced attribute in JSX form like xlinkHref instead of xlink:href causes error "Image source is not provided" to be thrown.

Expected Behavior

Satori should use the JSX/TSX attribute xlinkHref as the <image /> source, interpreting it the same it does xlink:href and href.

Reproduction

Using xlink:href (works)

Using xlinkHref (doesn't work)

Using href intead of xlinkHref (works, potential workaround while bug isn't fixed)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions