Re:An SVG that always shows today's date
by dpwm on Sunday February 25, 2018 @12:08PM
(#16459886)
That's a relief. I see from the page it's embedded as an iframe, which I didn't know you could do. Changing the iframe to an img on the page does indeed prevent the script executing, at least on Firefox.
[ Parent
| on HN ]
Re:An SVG that always shows today's date
by amenghra on Sunday February 25, 2018 @07:10PM
(#16462034)
Proof that it doesn't work when used in an <img> tag:
https://jsfiddle.net/8rcrfpwn/
Re:An SVG that always shows today's date
by four_serenity on Monday February 26, 2018 @07:27AM
(#16464796)
It does work with an <object> tag, though: https://jsfiddle.net/8rcrfpwn/4/