googlearchive / TemplateBinding

TemplateBinding Prolyfill
290 stars 55 forks source link

template ref doesn't properly search for source template #33

Closed rafaelw closed 11 years ago

rafaelw commented 11 years ago

It should probably do getElementById() in the ownerDocument and then in the template contents owner host document

rafaelw commented 11 years ago

also, the outer treescope (in the case of shadowroot)

rafaelw commented 11 years ago

we're going to ensure that template's can only iterate outside of template contents:

https://github.com/toolkitchen/mdv/issues/53

Thus, this issue is probably irrelevant as in almost all cases, whenever a template ref is instantiated, the template it is referrering to will also have been instantiated (and is in the same document).