Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Selectable and more importantly searchable text is one of the reasons why I occasionally open Large SVG diagrams in browser instead of the usual image viewer.


Right. I'd always just seen SVG as an image format. Interesting that browsers treat text inside them just like plain text.


You can actually embed HTML inside an SVG using the foreignObject element.


I’ve done some cool things with the built-in SMIL animation too. You can control it with JavaScript and CSS… Watch out for the filters though — they can be pretty heavy compute-wise.


I mean, it is just plain text inside some XML tags. It'd be weirder if they treated it like text in a photo




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: