github / relative-time-element

Web component extensions to the standard <time> element.

Home Page:https://github.github.io/relative-time-element/examples/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compatibility broken with Web components 1.0.0

lpellegr opened this issue · comments

When used in Firefox, I get the following error:

TypeError: document.registerElement is not a function

screenshot from 2017-06-27 11-16-56

The polyfill with version 1.0.0 of web component assumes that window.customElements.define is used.

Related to #67.

v1.0.0 is out now with Custom Elements v1 API. A polyfill example can be found here.