{"action":"created","issue":{"url":"https://api.github.com/repos/WebReflection/html-parsed-element/issues/7","repository_url":"https://api.github.com/repos/WebReflection/html-parsed-element","labels_url":"https://api.github.com/repos/WebReflection/html-parsed-element/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/WebReflection/html-parsed-element/issues/7/comments","events_url":"https://api.github.com/repos/WebReflection/html-parsed-element/issues/7/events","html_url":"https://github.com/WebReflection/html-parsed-element/issues/7","id":379219876,"node_id":"MDU6SXNzdWUzNzkyMTk4NzY=","number":7,"title":"Uncaught DOMException: Failed to construct 'CustomElement': The result must not have attributes","user":{"login":"franktopel","id":10668603,"node_id":"MDQ6VXNlcjEwNjY4NjAz","avatar_url":"https://avatars1.githubusercontent.com/u/10668603?v=4","gravatar_id":"","url":"https://api.github.com/users/franktopel","html_url":"https://github.com/franktopel","followers_url":"https://api.github.com/users/franktopel/followers","following_url":"https://api.github.com/users/franktopel/following{/other_user}","gists_url":"https://api.github.com/users/franktopel/gists{/gist_id}","starred_url":"https://api.github.com/users/franktopel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franktopel/subscriptions","organizations_url":"https://api.github.com/users/franktopel/orgs","repos_url":"https://api.github.com/users/franktopel/repos","events_url":"https://api.github.com/users/franktopel/events{/privacy}","received_events_url":"https://api.github.com/users/franktopel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-09T16:01:18Z","updated_at":"2018-11-09T16:19:52Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"We are trying to integrate `html-parsed-element` into our project's component library.\r\n\r\nCurrently, if we load the bundled components in the `head` of the HTML, this is what we're getting:\r\n\r\n`Uncaught DOMException: Failed to construct 'CustomElement': The result must not have attributes`\r\n\r\nI assume this is causing alot of follow-up errors:\r\n\r\n![image](https://user-images.githubusercontent.com/10668603/48273196-aa3d8b00-e440-11e8-8213-cb48199b2220.png)\r\n\r\nIn the constructor we're only setting custom (non-inherited) component properties which are not DOM-related.\r\n\r\nWe do, though, have defined top level getters and setters on the component itself, which do try to access children. Also, we have `attributeChangedCallback` calling these setters.\r\n\r\n**Any idea what could be going on here?**\r\n\r\nP.S.: I assume there's alot more to fix on our side, but the thing that makes me publish this as an issue here is the fact that **`parsedCallback` in the above scenario definitely gets called with zero children present.** If I wrap the parsedCallback code in a `setTimeout(() => { ... }, 1}` the children **are** available."},"comment":{"url":"https://api.github.com/repos/WebReflection/html-parsed-element/issues/comments/437411511","html_url":"https://github.com/WebReflection/html-parsed-element/issues/7#issuecomment-437411511","issue_url":"https://api.github.com/repos/WebReflection/html-parsed-element/issues/7","id":437411511,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzQxMTUxMQ==","user":{"login":"franktopel","id":10668603,"node_id":"MDQ6VXNlcjEwNjY4NjAz","avatar_url":"https://avatars1.githubusercontent.com/u/10668603?v=4","gravatar_id":"","url":"https://api.github.com/users/franktopel","html_url":"https://github.com/franktopel","followers_url":"https://api.github.com/users/franktopel/followers","following_url":"https://api.github.com/users/franktopel/following{/other_user}","gists_url":"https://api.github.com/users/franktopel/gists{/gist_id}","starred_url":"https://api.github.com/users/franktopel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franktopel/subscriptions","organizations_url":"https://api.github.com/users/franktopel/orgs","repos_url":"https://api.github.com/users/franktopel/repos","events_url":"https://api.github.com/users/franktopel/events{/privacy}","received_events_url":"https://api.github.com/users/franktopel/received_events","type":"User","site_admin":false},"created_at":"2018-11-09T16:19:52Z","updated_at":"2018-11-09T16:19:52Z","author_association":"CONTRIBUTOR","body":"That's why I'm asking for your thoughts as of what could possibly cause parsedCallback to ever get called without children present (no, not the no-whitespace-noone-has-siblings-edge-case)."}}
{"actor":{"display_login":"franktopel"}}