{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/webcomponents/issues/343","repository_url":"https://api.github.com/repos/w3c/webcomponents","labels_url":"https://api.github.com/repos/w3c/webcomponents/issues/343/labels{/name}","comments_url":"https://api.github.com/repos/w3c/webcomponents/issues/343/comments","events_url":"https://api.github.com/repos/w3c/webcomponents/issues/343/events","html_url":"https://github.com/w3c/webcomponents/issues/343","id":111735507,"number":343,"title":"Extend the slotting algorithm so that a slot can select an element which doesn't have slot attribute.","user":{"login":"hayatoito","id":160288,"avatar_url":"https://avatars.githubusercontent.com/u/160288?v=3","gravatar_id":"","url":"https://api.github.com/users/hayatoito","html_url":"https://github.com/hayatoito","followers_url":"https://api.github.com/users/hayatoito/followers","following_url":"https://api.github.com/users/hayatoito/following{/other_user}","gists_url":"https://api.github.com/users/hayatoito/gists{/gist_id}","starred_url":"https://api.github.com/users/hayatoito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hayatoito/subscriptions","organizations_url":"https://api.github.com/users/hayatoito/orgs","repos_url":"https://api.github.com/users/hayatoito/repos","events_url":"https://api.github.com/users/hayatoito/events{/privacy}","received_events_url":"https://api.github.com/users/hayatoito/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/w3c/webcomponents/labels/shadow-dom","name":"shadow-dom","color":"207de5"},{"url":"https://api.github.com/repos/w3c/webcomponents/labels/v2","name":"v2","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-10-16T00:41:44Z","updated_at":"2016-03-23T09:57:44Z","closed_at":null,"body":"I am afraid that component users would complain when they find that shadow host's children should always have a slot attribute, after shipping v1.\r\n\r\nI don't have an intention to include this feature in v1. Let me file an issue here with v2 label, so that users can know that we are aware of this concern.\r\n"},"comment":{"url":"https://api.github.com/repos/w3c/webcomponents/issues/comments/200274847","html_url":"https://github.com/w3c/webcomponents/issues/343#issuecomment-200274847","issue_url":"https://api.github.com/repos/w3c/webcomponents/issues/343","id":200274847,"user":{"login":"tomalec","id":17435,"avatar_url":"https://avatars.githubusercontent.com/u/17435?v=3","gravatar_id":"","url":"https://api.github.com/users/tomalec","html_url":"https://github.com/tomalec","followers_url":"https://api.github.com/users/tomalec/followers","following_url":"https://api.github.com/users/tomalec/following{/other_user}","gists_url":"https://api.github.com/users/tomalec/gists{/gist_id}","starred_url":"https://api.github.com/users/tomalec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomalec/subscriptions","organizations_url":"https://api.github.com/users/tomalec/orgs","repos_url":"https://api.github.com/users/tomalec/repos","events_url":"https://api.github.com/users/tomalec/events{/privacy}","received_events_url":"https://api.github.com/users/tomalec/received_events","type":"User","site_admin":false},"created_at":"2016-03-23T09:57:44Z","updated_at":"2016-03-23T09:57:44Z","body":"We do have created many custom elements (with shadow DOM v0) that acts as a containers for any content. It would be great if we could be able to achieve same functionality with v2, and to be able to do declaratively something like:\r\n\r\n```html\r\n<my-fancy-container> <!-- , my-app-layout or any other element that should consume variaty of different elements -->\r\n  <h1 slot=\"header\">Goes to `slot name=\"header\"`</h1>\r\n  <div>Any</div>\r\n  <span>other</span>\r\n  <p>element will be distributed where `slot`(?) or any other replacement for `content` without `select` attribute is</p>\r\n</my-fancy-container>\r\n```\r\n\r\nWith v0 we were able to to it simply with:\r\n```html\r\n<!-- shadow root -->\r\n<div class=\"makeContainerLookFancy\">\r\n   <div class=\"addUnicornToTheHeader\"><content select=\"[slot=header]\"></content></div>\r\n   <content></content>\r\n</div>\r\n```\r\n\r\nPersonally I think it's not a duplicate of imperative API, as it would be great to be able to do something that simple declarative way.\r\n\r\n"}}