Skip to content

Conversation

jkelleyrtp
Copy link
Member

@jkelleyrtp jkelleyrtp commented Jan 8, 2025

We were accidentally stringifying the attribute literal names for the matching code. This caused us to match "viewBox" against "\"viewBox\"" which caused us to fallback onto "viewBox".

Also strips off namespaces in attributes since HTML-5 generally doesn't include those.
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href

This fixes that and adds a test for it.

Fixes #3204
Fixes #3212

@jkelleyrtp jkelleyrtp merged commit 343c48f into main Jan 9, 2025
17 checks passed
@jkelleyrtp jkelleyrtp deleted the jk/fix-translate branch January 9, 2025 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dx translate not applying xml namespaces (for things like svg) Fix dx translate viewBox=
1 participant