Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SvgKeyed #520

Merged
merged 1 commit into from
Aug 16, 2020
Merged

Fix SvgKeyed #520

merged 1 commit into from
Aug 16, 2020

Conversation

savtrip
Copy link
Contributor

@savtrip savtrip commented May 19, 2020

SvgKeyed used keyedNode instead of keyedNodeNS. The virtual DOM
therefore treated the Svg as a generic element.

The fix reflects the fix made by Evan in the elm/svg package.
https://github.com/elm/svg/blob/master/src/Svg/Keyed.elm

Also, this closes issue #504.

The fix originated from a Keyed Svg of mine that contained no width or height. I noticed that the browser treated it as a generic node instead of an Svg. I compared rtfeldman/elm-css to elm/svg and noticed the difference.

SvgKeyed used keyedNode instead of keyedNodeNS. The virtual DOM
therefore treated the Svg as a generic element.

The fix reflects the fix made by Evan in the elm/svg package.
https://github.com/elm/svg/blob/master/src/Svg/Keyed.elm
@savtrip
Copy link
Contributor Author

savtrip commented Jul 8, 2020

Hey @rtfeldman, a bump for the PR. I am able to self publish a version myself in the mean time, thought I shall try a bump first.

Also, on an unrelated note, thank you for all the resources and learning material you publish within the elm community. I watched quite a few of your talks and read bits and pieces of your book.

@rtfeldman
Copy link
Owner

Thanks! This looks fine. Sorry I took so long getting to this!

@rtfeldman rtfeldman merged commit 42882e2 into rtfeldman:master Aug 16, 2020
@rtfeldman
Copy link
Owner

Published as 16.0.2

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.

2 participants