Skip to content

Conversation

Rich-Harris
Copy link
Member

fixes #3522. Not sure why it took so long for this solution to occur to me (apologies if anyone had already suggested it) — all we need to do is guarantee that SVG spread attributes are only ever set with setAttribute, and we're good.

The test here is harmless, but also useless — JSDOM doesn't error when you try to set readonly properties, and I can't be bothered to raise an issue.

@Rich-Harris
Copy link
Member Author

Should also fix #2732

@Conduitry
Copy link
Member

I guess the obvious question is: So there aren't any boolean attributes in SVG? If there aren't, yeah this makes a lot of sense.

@Conduitry
Copy link
Member

Is #1708 also the same issue? It seems like it might be.

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.

Spread operator doesn't work in SVG elements
2 participants