Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gugagore
3 months ago
|
parent
|
context
|
favorite
| on:
Why can't HTML alone do includes?
I think the quickest way to say it is that there is only one head on a page, and every HTML file needs a head. So if you include one into the other, you either have two heads, or the inner document didn't have a head.
econ
3 months ago
|
next
[–]
They can just be html chunks. No need to make sense on their own.
Maybe a single tag that points at an url to load if someone attempts to load the chunk directly.
mattlondon
3 months ago
|
prev
[–]
See DofumentFragment - sounds a lot like this:
https://developer.mozilla.org/en-US/docs/Web/API/DocumentFra...
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: