Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
4
vladimyr avatar

This produces invalid data URLs :(

I first noticed that while checking valshot landing page output on the W3C validator: https://validator.w3.org/nu/?doc=https://vladimyr-valshot.web.val.run That prompted me to try fetching those URLs and they are indeed malformed: https://www.val.town/v/vladimyr/valTownLogo_test

PR is on the way 🛬

postpostscript avatar

@vladimyr thanks for the catch and PR! 🙏

vladimyr avatar

Any time 😉 Just to be clear, this still produces URLs with spaces, which makes the W3C validator freak out, but they are not invalid, and SVG markup can be extracted from them using a simple fetch call.

vladimyr avatar
Updated: March 8, 2024