Re:Goodbye InnerHTML, Hello SetHTML: Stronger XSS Protection...
by kccqzy on Tuesday February 24, 2026 @10:55AM
(#47138677)
If you just serve SVGs through <img> tag it’ll be much safer. I never understood the appeal of inline <svg> anyways.
[ Parent
| on HN ]
Re:Goodbye InnerHTML, Hello SetHTML: Stronger XSS Protection...
by rwj on Tuesday February 24, 2026 @11:58AM
(#47139423)
Inline reduces round trips.
Re:Goodbye InnerHTML, Hello SetHTML: Stronger XSS Protection...
by toast0 on Tuesday February 24, 2026 @12:11PM
(#47139618)
You can use img with a data url?