logoalt Hacker News

axelfontaine05/03/20253 repliesview on HN

Iframes, while not perfect, are pretty close though...


Replies

lelandfe05/03/2025

Making iframes be the right size is super awkward. I might actually use them more if they were easy to get responsive.

This post does link to a technique (new to me) to extract iframe contents:

    <iframe src="/example.html" onload="this.before((this.contentDocument.body||this.contentDocument).children[0]);this.remove()"></iframe>
show 2 replies
webstrand05/03/2025

Iframes fundamentally encapsulate html documents, not fragments.

rendaw05/03/2025

Interaction between elements in different iframes is very restricted.

show 1 reply