Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: HTML-Include: Include HTML in HTML (franzai.com)
2 points by franze on May 3, 2025 | hide | past | favorite | 4 comments


A follow up to https://news.ycombinator.com/item?id=43878728

> Why can't HTML alone do includes?

A quick Chrome Extension Polyfill for all those who are curious.


Any reason that the tag isn't a void element, i.e. that it must be

    <include src="path/to/fragment.html"></include>
instead of

    <include src="path/to/fragment.html"/>

?


So visitors need a chrome extension?


Chrome extension seems like the wrong way to do this. Should be a web component or just a simple JS file.




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

Search: