{"action":"created","issue":{"url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/issues/6","labels_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/issues/6/comments","events_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/issues/6/events","html_url":"https://github.com/PolymerElements/iron-demo-helpers/pull/6","id":122148228,"number":6,"title":"fix nested templates","user":{"login":"notwaldorf","id":1369170,"avatar_url":"https://avatars.githubusercontent.com/u/1369170?v=3","gravatar_id":"","url":"https://api.github.com/users/notwaldorf","html_url":"https://github.com/notwaldorf","followers_url":"https://api.github.com/users/notwaldorf/followers","following_url":"https://api.github.com/users/notwaldorf/following{/other_user}","gists_url":"https://api.github.com/users/notwaldorf/gists{/gist_id}","starred_url":"https://api.github.com/users/notwaldorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notwaldorf/subscriptions","organizations_url":"https://api.github.com/users/notwaldorf/orgs","repos_url":"https://api.github.com/users/notwaldorf/repos","events_url":"https://api.github.com/users/notwaldorf/events{/privacy}","received_events_url":"https://api.github.com/users/notwaldorf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"cdata","id":240083,"avatar_url":"https://avatars.githubusercontent.com/u/240083?v=3","gravatar_id":"","url":"https://api.github.com/users/cdata","html_url":"https://github.com/cdata","followers_url":"https://api.github.com/users/cdata/followers","following_url":"https://api.github.com/users/cdata/following{/other_user}","gists_url":"https://api.github.com/users/cdata/gists{/gist_id}","starred_url":"https://api.github.com/users/cdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdata/subscriptions","organizations_url":"https://api.github.com/users/cdata/orgs","repos_url":"https://api.github.com/users/cdata/repos","events_url":"https://api.github.com/users/cdata/events{/privacy}","received_events_url":"https://api.github.com/users/cdata/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-12-14T22:39:11Z","updated_at":"2016-01-19T23:36:31Z","closed_at":"2016-01-19T23:36:31Z","pull_request":{"url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/pulls/6","html_url":"https://github.com/PolymerElements/iron-demo-helpers/pull/6","diff_url":"https://github.com/PolymerElements/iron-demo-helpers/pull/6.diff","patch_url":"https://github.com/PolymerElements/iron-demo-helpers/pull/6.patch"},"body":"If the `demo-snippet` is inside another template, like this:\r\n```html\r\n<template is=\"dom-bind\">\r\n  <demo-snippet>\r\n    <template>\r\n          <input>\r\n    </template>\r\n  </demo-snippet>\r\n</template>\r\n```\r\nthen the `demo-snippet`'s inside template is empty, because of how `cloneNode` works with templates. In this case we need to a) use Polymer's `template._content`, to actually get the nested content, and b) manually generate the `innerHTML`, since that works on the original template which is empty\r\n\r\n💥😂🔫 \r\n\r\nAlso, I've moved the code into separate functions because it was getting out of control"},"comment":{"url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/issues/comments/173023640","html_url":"https://github.com/PolymerElements/iron-demo-helpers/pull/6#issuecomment-173023640","issue_url":"https://api.github.com/repos/PolymerElements/iron-demo-helpers/issues/6","id":173023640,"user":{"login":"notwaldorf","id":1369170,"avatar_url":"https://avatars.githubusercontent.com/u/1369170?v=3","gravatar_id":"","url":"https://api.github.com/users/notwaldorf","html_url":"https://github.com/notwaldorf","followers_url":"https://api.github.com/users/notwaldorf/followers","following_url":"https://api.github.com/users/notwaldorf/following{/other_user}","gists_url":"https://api.github.com/users/notwaldorf/gists{/gist_id}","starred_url":"https://api.github.com/users/notwaldorf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notwaldorf/subscriptions","organizations_url":"https://api.github.com/users/notwaldorf/orgs","repos_url":"https://api.github.com/users/notwaldorf/repos","events_url":"https://api.github.com/users/notwaldorf/events{/privacy}","received_events_url":"https://api.github.com/users/notwaldorf/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T23:36:31Z","updated_at":"2016-01-19T23:36:31Z","body":"I'm going to close this PR and hope this gets fixed in webcomponents.js soon. Or reopen it when I remember what this was actually about :)"}}