-
Notifications
You must be signed in to change notification settings - Fork 4
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
Shouldn't this be <imported-template> #29
Comments
I vote for 1. that's why I've created Juicy/juicy-html#10 long time ago. Option 2. Is definitely not a way to go, as we need to stamp on the same level, to be able to distribute it within parent's Shadow DOM, not in |
|
You're right! (Sorry, I think in the beggining of 2.x-preview it wasn't so) Then the only downside is that Luckily since, we removed all the slot magic, filtering However, I still think having a bit confusing (not so inert) At least for now, I will just make it cleaner by adding control on inertness/stamping via the attribute. And wait how the discussions on |
@tomalec will make There is also some change that will need to be migrated to the We need a release candidate (can be without tests) ASAP. |
We have a yet another blocker in V1 - HTML Imports polyfill webcomponents/webcomponentsjs#872 :( And this is pretty serious one, as we cannot get with lack of support for |
WIP: support WebComponents.js polyfill >=1.x - per-template script execution is missing. webcomponents/webcomponentsjs#872 Implements #29
Can |
I'd rather querySelect and clone/recreate them in imported document. That's the fix I have prepared for HTML Imports polyfill. |
Closing as done in PR #38 |
Setting as “Finished” because it is:
|
Right now, this component is called
<template is="imported-template>
. It automatically stamps the first template found in the imported file.This is a little bit weird because
<template>
is supposed to be inert and this element is not inert.It is inspired by Polymer's 1.x
<template is="dom-bind">
which does the same: https://www.polymer-project.org/1.0/docs/devguide/templates#dom-bindPotential solutions:
auto-stamp
attribute. This makes it a more propertemplate
by default.<imported-template>
.In the end, this should be equivalent:
That's a long term proposal, but for me this would be much cleaner.
The text was updated successfully, but these errors were encountered: