-
Notifications
You must be signed in to change notification settings - Fork 45
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the IFRAME advantage over shadowDOM? #19
Comments
A lot more code, but looks interesting! Could you share how I could have an Thank you. |
You don't have to load it in another element, |
That means one can't use it to do what htmz does, so it's not an alternative. |
Or replace with And do its only modern JavaScript... |
Hi @Danny-Engelman ! That isn't enough to replace htmz I'm afraid. You'd need some additional system for handling form submissions, links, and buttons to load new content into some other element. |
Hi, htmz works on click.
As others have mentioned, the advantage of iframes is that they can be Converting to Discussion. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
With a
<load-file>
Web Component you have the choice of loading any content into DOM, or in shadowDOM to keep<style>
scoped... and even move (global) style (or any Node for that matter) to shadowDOMNo need to define it before being used like your htmz function; any existing
<load-file>
will upgrade automagically.source: a DEV.to Post from 2021
The text was updated successfully, but these errors were encountered: