{"action":"created","issue":{"url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/645","repository_url":"https://api.github.com/repos/webcomponents/webcomponentsjs","labels_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/645/labels{/name}","comments_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/645/comments","events_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/645/events","html_url":"https://github.com/webcomponents/webcomponentsjs/issues/645","id":186097723,"number":645,"title":"Support for v1 spec -- constructor() problem?","user":{"login":"johnthad","id":5176962,"avatar_url":"https://avatars.githubusercontent.com/u/5176962?v=3","gravatar_id":"","url":"https://api.github.com/users/johnthad","html_url":"https://github.com/johnthad","followers_url":"https://api.github.com/users/johnthad/followers","following_url":"https://api.github.com/users/johnthad/following{/other_user}","gists_url":"https://api.github.com/users/johnthad/gists{/gist_id}","starred_url":"https://api.github.com/users/johnthad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnthad/subscriptions","organizations_url":"https://api.github.com/users/johnthad/orgs","repos_url":"https://api.github.com/users/johnthad/repos","events_url":"https://api.github.com/users/johnthad/events{/privacy}","received_events_url":"https://api.github.com/users/johnthad/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-29T19:56:14Z","updated_at":"2016-11-13T19:46:04Z","closed_at":"2016-11-13T19:46:04Z","body":"I've created a small custom elements template that can be seen at https://github.com/johnthad/wc-template or https://jsfiddle.net/JThaddeus/Lm16jnyu/\n\nWhen run in Chrome 54 it naturally works--I see the `WC-TEMPLATE` in the console. However, though I've added the webcomponents.min.js polyfill, the web component fails in other browsers. When running the JSFiddle, I see in the console `TypeError: window.customElements is undefined` in Firefox 49.0.2 and `TypeError: undefined is not an object (evaluating 'window.customElements.define')` in Safari 10.0.1. \n\nIs the web components v1 spec supported yet? I see in the `README.md` that \"Custom element's constructor property is unreliable.\" Is that the problem am seeing? When loading the page locally with Edge (running Windows 10 under Parallels), I get a JavaScript error at `class extends HTMLElement`, so maybe is an issue with ES6?\n"},"comment":{"url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/comments/260207535","html_url":"https://github.com/webcomponents/webcomponentsjs/issues/645#issuecomment-260207535","issue_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/645","id":260207535,"user":{"login":"johnthad","id":5176962,"avatar_url":"https://avatars.githubusercontent.com/u/5176962?v=3","gravatar_id":"","url":"https://api.github.com/users/johnthad","html_url":"https://github.com/johnthad","followers_url":"https://api.github.com/users/johnthad/followers","following_url":"https://api.github.com/users/johnthad/following{/other_user}","gists_url":"https://api.github.com/users/johnthad/gists{/gist_id}","starred_url":"https://api.github.com/users/johnthad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnthad/subscriptions","organizations_url":"https://api.github.com/users/johnthad/orgs","repos_url":"https://api.github.com/users/johnthad/repos","events_url":"https://api.github.com/users/johnthad/events{/privacy}","received_events_url":"https://api.github.com/users/johnthad/received_events","type":"User","site_admin":false},"created_at":"2016-11-13T19:46:04Z","updated_at":"2016-11-13T19:46:04Z","body":"Ah! I missed this the first time I went looking: [#540 - Update polyfill to Custom Elements v1](https://github.com/webcomponents/webcomponentsjs/issues/540). We must wait..."}}
{"actor":{"display_login":"johnthad"}}