{"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":12,"created_at":"2015-10-16T00:41:44Z","updated_at":"2016-03-23T10:28:52Z","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/200286690","html_url":"https://github.com/w3c/webcomponents/issues/343#issuecomment-200286690","issue_url":"https://api.github.com/repos/w3c/webcomponents/issues/343","id":200286690,"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-23T10:28:52Z","updated_at":"2016-03-23T10:28:52Z","body":"Ok, got it.\r\n\r\nAnd probably something like below introduces same performance and lifecycle issues, like `content select` from v0, doesn't it?\r\n\r\n--- \r\n\r\nInput\r\n    NODE, a node\r\nOutput\r\n    (nullable) SLOT, a slot to which NODE is assigned.\r\n\r\n1. If the parent node of NODE is a shadow host:\r\n 1. Let TREE be the shadow tree that the parent node of NODE hosts\r\n 2. Let NAME be the value of the slot attribute of NODE\r\n 3. If NAME is missing:\r\n   1. Let SLOT be a default slot for TREE if it exists, Otherwise, null\r\n 4. If NAME is the empty string:\r\n     1. Let SLOT be the first slot which _`select` attribute_  matches NODE, If there is none null\r\n 4. Otherwise:\r\n   1. Let SLOT be the most preceding slot in TREE whose slot name is NAME if it exists. Otherwise null.\r\n2. Otherwise:\r\n 1. Let SLOT be null\r\n\r\n---\r\nHowever with such algorithm, we will be able to specify that some nodes are allowed to be distributed, without awareness of shadow DOM structure (slot name), keeping the fully efficient slot selector."}}