Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

templates aren't decorated until DOMContentLoaded and may be used before then #64

Closed
rafaelw opened this issue May 9, 2013 · 2 comments
Labels

Comments

@rafaelw
Copy link
Contributor

rafaelw commented May 9, 2013

e.g.

<template id=test bind>
<table>
  <tr template repeat><td>{{}}</td></tr>
</table>
</template>
<script>
document.getElementById('test').model = [0, 1, 2]
</script>

If there are native templates, the outer template will be instantiated, but the inner semantic hasn't been decorated and doesn't get its content lifted in time.

Without native templates, nothing much interesting happens (neither template is decorated in time).

With mutation observers, we could observer during parse, but I'm not sure what to do with them. Arv?

@ghost ghost assigned arv May 9, 2013
@arv
Copy link
Contributor

arv commented May 9, 2013

Observing during parse will handle some more cases but not all. I'm not sure there is a good solution here.

@rafaelw
Copy link
Contributor Author

rafaelw commented Nov 20, 2013

This will need to simply be documented as a sharp-edge of the polyfill.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants