{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/html/issues/1384","repository_url":"https://api.github.com/repos/whatwg/html","labels_url":"https://api.github.com/repos/whatwg/html/issues/1384/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/html/issues/1384/comments","events_url":"https://api.github.com/repos/whatwg/html/issues/1384/events","html_url":"https://github.com/whatwg/html/issues/1384","id":158298173,"number":1384,"title":"Can \"create an element\" use \"upgrade element using definition\"?","user":{"login":"kojiishi","id":1274377,"avatar_url":"https://avatars.githubusercontent.com/u/1274377?v=3","gravatar_id":"","url":"https://api.github.com/users/kojiishi","html_url":"https://github.com/kojiishi","followers_url":"https://api.github.com/users/kojiishi/followers","following_url":"https://api.github.com/users/kojiishi/following{/other_user}","gists_url":"https://api.github.com/users/kojiishi/gists{/gist_id}","starred_url":"https://api.github.com/users/kojiishi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kojiishi/subscriptions","organizations_url":"https://api.github.com/users/kojiishi/orgs","repos_url":"https://api.github.com/users/kojiishi/repos","events_url":"https://api.github.com/users/kojiishi/events{/privacy}","received_events_url":"https://api.github.com/users/kojiishi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/whatwg/html/labels/topic:%20custom%20elements","name":"topic: custom elements","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-03T06:13:16Z","updated_at":"2016-06-03T23:31:47Z","closed_at":null,"body":"Currently we have two places to call `Construct(C)`, one in [create an element](https://dom.spec.whatwg.org/#concept-create-element) 6.2 (definition is non-null and synchronous) and another in [upgrade](https://html.spec.whatwg.org/multipage/scripting.html#concept-upgrade-an-element). Could these two be merged? Any reasons 6.2 can't be like 5.1-5.3?\r\n\r\nWe're needing a bit of different code paths for these two, as the former does not touch the construction stack, and wondering if these can be unified.\r\n\r\n@domenic @dominiccooney "},"comment":{"url":"https://api.github.com/repos/whatwg/html/issues/comments/223718456","html_url":"https://github.com/whatwg/html/issues/1384#issuecomment-223718456","issue_url":"https://api.github.com/repos/whatwg/html/issues/1384","id":223718456,"user":{"login":"rniwa","id":285965,"avatar_url":"https://avatars.githubusercontent.com/u/285965?v=3","gravatar_id":"","url":"https://api.github.com/users/rniwa","html_url":"https://github.com/rniwa","followers_url":"https://api.github.com/users/rniwa/followers","following_url":"https://api.github.com/users/rniwa/following{/other_user}","gists_url":"https://api.github.com/users/rniwa/gists{/gist_id}","starred_url":"https://api.github.com/users/rniwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rniwa/subscriptions","organizations_url":"https://api.github.com/users/rniwa/orgs","repos_url":"https://api.github.com/users/rniwa/repos","events_url":"https://api.github.com/users/rniwa/events{/privacy}","received_events_url":"https://api.github.com/users/rniwa/received_events","type":"User","site_admin":false},"created_at":"2016-06-03T23:31:47Z","updated_at":"2016-06-03T23:31:47Z","body":"Note that the situation construction stack can't solve is constructing another instance of itself:\r\n```js\r\nMyElement extends HTMLElement {\r\n    constructor(stop) {\r\n        if (!stop)\r\n            new MyElement(true);\r\n        super();\r\n    }\r\n}\r\n```"}}
{"actor":{"display_login":"rniwa"}}