googlearchive / TemplateBinding

TemplateBinding Prolyfill
290 stars 61 forks source link

Incorrect constructor for HTMLTemplateElement? #139

Closed jeluard closed 10 years ago

jeluard commented 11 years ago

On chrome stable, document.createElement('template').constructor == HTMLTemplateElement is true while it is not on latest firefox (23.0.1), both using polymer polyfill. Is this something I can rely on?

Note that on both browsers document.createElement('template') instanceof HTMLTemplateElement and document.createElement('div') == HTMLDivElement are true.

arv commented 11 years ago

This is a ShadowDOM polyfill bug.

jeluard commented 11 years ago

Ah ok. Should I open an issue there then?

arv commented 11 years ago

No need to file another bug.

On Wed, Aug 28, 2013 at 2:13 PM, Julien Eluard notifications@github.comwrote:

Ah ok. Should I open an issue there then?

— Reply to this email directly or view it on GitHubhttps://github.com/Polymer/TemplateBinding/issues/139#issuecomment-23435530 .

erik