{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/polymer/issues/3340","labels_url":"https://api.github.com/repos/Polymer/polymer/issues/3340/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer/issues/3340/comments","events_url":"https://api.github.com/repos/Polymer/polymer/issues/3340/events","html_url":"https://github.com/Polymer/polymer/issues/3340","id":129300824,"number":3340,"title":"Default to ShadowDom when using full polyfill","user":{"login":"indolering","id":44454,"avatar_url":"https://avatars.githubusercontent.com/u/44454?v=3","gravatar_id":"","url":"https://api.github.com/users/indolering","html_url":"https://github.com/indolering","followers_url":"https://api.github.com/users/indolering/followers","following_url":"https://api.github.com/users/indolering/following{/other_user}","gists_url":"https://api.github.com/users/indolering/gists{/gist_id}","starred_url":"https://api.github.com/users/indolering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indolering/subscriptions","organizations_url":"https://api.github.com/users/indolering/orgs","repos_url":"https://api.github.com/users/indolering/repos","events_url":"https://api.github.com/users/indolering/events{/privacy}","received_events_url":"https://api.github.com/users/indolering/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-27T23:22:45Z","updated_at":"2016-02-01T19:23:14Z","closed_at":null,"body":"Switching Polymer to using the ShadowDom currently requires setting a global JS variable (`window.Polymer.dom = 'shadow';`) but the use of the ShadowDom is implied when using the full WebComponents polyfill.  Setting this global variable is also a pain for anyone that is using CSP as it requires maintaining a 2-line JS script and this script must be loaded before anything else.\r\n\r\nInstead, Polymer should default to the ShadowDom when the full WebComponents polyfill is loaded.  A data-* attribute on the WebComponents script tag would also work."},"comment":{"url":"https://api.github.com/repos/Polymer/polymer/issues/comments/178140145","html_url":"https://github.com/Polymer/polymer/issues/3340#issuecomment-178140145","issue_url":"https://api.github.com/repos/Polymer/polymer/issues/3340","id":178140145,"user":{"login":"indolering","id":44454,"avatar_url":"https://avatars.githubusercontent.com/u/44454?v=3","gravatar_id":"","url":"https://api.github.com/users/indolering","html_url":"https://github.com/indolering","followers_url":"https://api.github.com/users/indolering/followers","following_url":"https://api.github.com/users/indolering/following{/other_user}","gists_url":"https://api.github.com/users/indolering/gists{/gist_id}","starred_url":"https://api.github.com/users/indolering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indolering/subscriptions","organizations_url":"https://api.github.com/users/indolering/orgs","repos_url":"https://api.github.com/users/indolering/repos","events_url":"https://api.github.com/users/indolering/events{/privacy}","received_events_url":"https://api.github.com/users/indolering/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T19:23:14Z","updated_at":"2016-02-01T19:23:14Z","body":"@klebba Are you against using a `data-*` attribute, perhaps on a `<meta>` tag or the Polymer `<link>` tag?  The Polymer devs have made it clear that they won't switch to using the ShadowDOM by default for some time and I'm just trying to make it easier to configure full ShadowDOM support since I will have to support IE11 and Safari 9 for a few years."}}