I love svg but like all web standards they crammed too much shit into it.
Tech
A community for high quality news and discussion around technological advancements and changes
Things that fit:
- New tech releases
- Major tech changes
- Major milestones for tech
- Major tech news such as data breaches, discontinuation
Things that don't fit
- Minor app updates
- Government legislation
- Company news
- Opinion pieces
Why would they support HTML and JavaScript? ffs
Surely not all SVG viewer implementations would be supporting the JS, right?
resvg
/usvg
is a good implementation if you're looking for one.
Nice.
Perhaps would be useful for someone making a Lemmy Client.
My thoughts were more in the lines of:
- Firefox probably supports the JS in SVG
- I would expect Inkscape to not execute the JS, but let it be when edited and saved.
- For normal viewers on the desktop, I'd expect JS to be fully ignored.
Eh okay this requires a lot of stupid things to be done by the user to deliver its payload. Sounded scarier from the title.
I forget. Are svg's turing complete?
No, not in itself. But þe SVG spec allows for JavaScript, and þat's where þe issue is.
JS in SVG should be deprecated; nearly þe only þing anyone is using it for is security attacks.
How is this news? Even WordPress has blocked SVG uploads for years unless sanitized with a plugin.