{"action":"created","comment":{"url":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/comments/49253080","id":49253080,"diff_hunk":"@@ -37,29 +37,51 @@ if (typeof HTMLTemplateElement === 'undefined') {\n       while (child = template.firstChild) {\n         template.content.appendChild(child);\n       }\n-      // add innerHTML to template, if possible\n+      // add innerHTML and outerHTML to template, if possible\n       // Note: this throws on Safari 7\n       if (canDecorate) {\n         try {\n-          Object.defineProperty(template, 'innerHTML', {\n-            get: function() {\n-              var o = '';\n-              for (var e = this.content.firstChild; e; e = e.nextSibling) {\n-                o += e.outerHTML || escapeData(e.data);\n-              }\n-              return o;\n+          Object.defineProperties(template, {\n+            innerHTML: {\n+              get: function() {\n+                var o = '';\n+                for (var e = this.content.firstChild; e; e = e.nextSibling) {\n+                  if (e.tagName == 'TEMPLATE') { console.log(e.outerHTML); }\n+                  o += e.outerHTML || escapeData(e.data);\n+                }\n+                return o;\n+              },\n+              set: function(text) {\n+                contentDoc.body.innerHTML = text;\n+                HTMLTemplateElement.bootstrap(contentDoc);\n+                while (this.content.firstChild) {\n+                  this.content.removeChild(this.content.firstChild);\n+                }\n+                while (contentDoc.body.firstChild) {\n+                  this.content.appendChild(contentDoc.body.firstChild);\n+                }\n+              },\n+              configurable: true\n             },\n-            set: function(text) {\n-              contentDoc.body.innerHTML = text;\n-              HTMLTemplateElement.bootstrap(contentDoc);\n-              while (this.content.firstChild) {\n-                this.content.removeChild(this.content.firstChild);\n-              }\n-              while (contentDoc.body.firstChild) {\n-                this.content.appendChild(contentDoc.body.firstChild);\n-              }\n-            },\n-            configurable: true\n+            outerHTML: {\n+              get: function() {\n+                var s = '<template';\n+                var attrs = this.attributes;\n+                for (var i = 0, attr; attr = attrs[i]; i++) {\n+                  s += ' ' + attr.name + '=\"' + escapeAttr(attr.value) + '\"';\n+                }\n+                return s + '>' + this.innerHTML + '</template>';\n+              },\n+              set: function(value) {\n+                var p = this.parentNode;\n+                if (p) {\n+                  p.invalidateShadowRenderer();","path":"src/Template/Template.js","position":89,"original_position":61,"commit_id":"5fb333ab49a660fccf3256b0fa69a859ddb173ec","original_commit_id":"6c25462f0d6db05448cc14e0b22a503db2cc5444","user":{"login":"azakus","id":46725,"avatar_url":"https://avatars.githubusercontent.com/u/46725?v=3","gravatar_id":"","url":"https://api.github.com/users/azakus","html_url":"https://github.com/azakus","followers_url":"https://api.github.com/users/azakus/followers","following_url":"https://api.github.com/users/azakus/following{/other_user}","gists_url":"https://api.github.com/users/azakus/gists{/gist_id}","starred_url":"https://api.github.com/users/azakus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azakus/subscriptions","organizations_url":"https://api.github.com/users/azakus/orgs","repos_url":"https://api.github.com/users/azakus/repos","events_url":"https://api.github.com/users/azakus/events{/privacy}","received_events_url":"https://api.github.com/users/azakus/received_events","type":"User","site_admin":false},"body":"This should check that `invalidateShaddowRenderer` is a function first.","created_at":"2016-01-08T23:58:30Z","updated_at":"2016-01-08T23:58:30Z","html_url":"https://github.com/webcomponents/webcomponentsjs/pull/476#discussion_r49253080","pull_request_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/476","_links":{"self":{"href":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/comments/49253080"},"html":{"href":"https://github.com/webcomponents/webcomponentsjs/pull/476#discussion_r49253080"},"pull_request":{"href":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/476"}}},"pull_request":{"url":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/476","id":55268744,"html_url":"https://github.com/webcomponents/webcomponentsjs/pull/476","diff_url":"https://github.com/webcomponents/webcomponentsjs/pull/476.diff","patch_url":"https://github.com/webcomponents/webcomponentsjs/pull/476.patch","issue_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/476","number":476,"state":"open","locked":false,"title":"Make template outerHTML work in IE","user":{"login":"trevordixon","id":1253245,"avatar_url":"https://avatars.githubusercontent.com/u/1253245?v=3","gravatar_id":"","url":"https://api.github.com/users/trevordixon","html_url":"https://github.com/trevordixon","followers_url":"https://api.github.com/users/trevordixon/followers","following_url":"https://api.github.com/users/trevordixon/following{/other_user}","gists_url":"https://api.github.com/users/trevordixon/gists{/gist_id}","starred_url":"https://api.github.com/users/trevordixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevordixon/subscriptions","organizations_url":"https://api.github.com/users/trevordixon/orgs","repos_url":"https://api.github.com/users/trevordixon/repos","events_url":"https://api.github.com/users/trevordixon/events{/privacy}","received_events_url":"https://api.github.com/users/trevordixon/received_events","type":"User","site_admin":false},"body":"#474 ","created_at":"2016-01-06T21:41:31Z","updated_at":"2016-01-08T23:58:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"991009e73a2192b6718521b2bb953e1e1db1d7b1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/476/commits","review_comments_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/476/comments","review_comment_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/476/comments","statuses_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/statuses/5fb333ab49a660fccf3256b0fa69a859ddb173ec","head":{"label":"trevordixon:template-outerHTML","ref":"template-outerHTML","sha":"5fb333ab49a660fccf3256b0fa69a859ddb173ec","user":{"login":"trevordixon","id":1253245,"avatar_url":"https://avatars.githubusercontent.com/u/1253245?v=3","gravatar_id":"","url":"https://api.github.com/users/trevordixon","html_url":"https://github.com/trevordixon","followers_url":"https://api.github.com/users/trevordixon/followers","following_url":"https://api.github.com/users/trevordixon/following{/other_user}","gists_url":"https://api.github.com/users/trevordixon/gists{/gist_id}","starred_url":"https://api.github.com/users/trevordixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevordixon/subscriptions","organizations_url":"https://api.github.com/users/trevordixon/orgs","repos_url":"https://api.github.com/users/trevordixon/repos","events_url":"https://api.github.com/users/trevordixon/events{/privacy}","received_events_url":"https://api.github.com/users/trevordixon/received_events","type":"User","site_admin":false},"repo":{"id":49163362,"name":"webcomponentsjs","full_name":"trevordixon/webcomponentsjs","owner":{"login":"trevordixon","id":1253245,"avatar_url":"https://avatars.githubusercontent.com/u/1253245?v=3","gravatar_id":"","url":"https://api.github.com/users/trevordixon","html_url":"https://github.com/trevordixon","followers_url":"https://api.github.com/users/trevordixon/followers","following_url":"https://api.github.com/users/trevordixon/following{/other_user}","gists_url":"https://api.github.com/users/trevordixon/gists{/gist_id}","starred_url":"https://api.github.com/users/trevordixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trevordixon/subscriptions","organizations_url":"https://api.github.com/users/trevordixon/orgs","repos_url":"https://api.github.com/users/trevordixon/repos","events_url":"https://api.github.com/users/trevordixon/events{/privacy}","received_events_url":"https://api.github.com/users/trevordixon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trevordixon/webcomponentsjs","description":"A suite of polyfills supporting the HTML Web Components specs","fork":true,"url":"https://api.github.com/repos/trevordixon/webcomponentsjs","forks_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/forks","keys_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/teams","hooks_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/hooks","issue_events_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/issues/events{/number}","events_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/events","assignees_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/assignees{/user}","branches_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/branches{/branch}","tags_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/tags","blobs_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/statuses/{sha}","languages_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/languages","stargazers_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/stargazers","contributors_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/contributors","subscribers_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/subscribers","subscription_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/subscription","commits_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/contents/{+path}","compare_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/merges","archive_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/downloads","issues_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/issues{/number}","pulls_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/pulls{/number}","milestones_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/milestones{/number}","notifications_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/labels{/name}","releases_url":"https://api.github.com/repos/trevordixon/webcomponentsjs/releases{/id}","created_at":"2016-01-06T21:39:01Z","updated_at":"2016-01-06T21:39:03Z","pushed_at":"2016-01-07T15:52:05Z","git_url":"git://github.com/trevordixon/webcomponentsjs.git","ssh_url":"git@github.com:trevordixon/webcomponentsjs.git","clone_url":"https://github.com/trevordixon/webcomponentsjs.git","svn_url":"https://github.com/trevordixon/webcomponentsjs","homepage":"http://webcomponents.org/polyfills/","size":2368,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"webcomponents:master","ref":"master","sha":"5f1284369eb57e94ca4e88d5d71ceaeb65d1c569","user":{"login":"webcomponents","id":1905708,"avatar_url":"https://avatars.githubusercontent.com/u/1905708?v=3","gravatar_id":"","url":"https://api.github.com/users/webcomponents","html_url":"https://github.com/webcomponents","followers_url":"https://api.github.com/users/webcomponents/followers","following_url":"https://api.github.com/users/webcomponents/following{/other_user}","gists_url":"https://api.github.com/users/webcomponents/gists{/gist_id}","starred_url":"https://api.github.com/users/webcomponents/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webcomponents/subscriptions","organizations_url":"https://api.github.com/users/webcomponents/orgs","repos_url":"https://api.github.com/users/webcomponents/repos","events_url":"https://api.github.com/users/webcomponents/events{/privacy}","received_events_url":"https://api.github.com/users/webcomponents/received_events","type":"Organization","site_admin":false},"repo":{"id":25003905,"name":"webcomponentsjs","full_name":"webcomponents/webcomponentsjs","owner":{"login":"webcomponents","id":1905708,"avatar_url":"https://avatars.githubusercontent.com/u/1905708?v=3","gravatar_id":"","url":"https://api.github.com/users/webcomponents","html_url":"https://github.com/webcomponents","followers_url":"https://api.github.com/users/webcomponents/followers","following_url":"https://api.github.com/users/webcomponents/following{/other_user}","gists_url":"https://api.github.com/users/webcomponents/gists{/gist_id}","starred_url":"https://api.github.com/users/webcomponents/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webcomponents/subscriptions","organizations_url":"https://api.github.com/users/webcomponents/orgs","repos_url":"https://api.github.com/users/webcomponents/repos","events_url":"https://api.github.com/users/webcomponents/events{/privacy}","received_events_url":"https://api.github.com/users/webcomponents/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/webcomponents/webcomponentsjs","description":"A suite of polyfills supporting the HTML Web Components specs","fork":false,"url":"https://api.github.com/repos/webcomponents/webcomponentsjs","forks_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/forks","keys_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/teams","hooks_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/hooks","issue_events_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/events{/number}","events_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/events","assignees_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/assignees{/user}","branches_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/branches{/branch}","tags_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/tags","blobs_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/statuses/{sha}","languages_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/languages","stargazers_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/stargazers","contributors_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/contributors","subscribers_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/subscribers","subscription_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/subscription","commits_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/contents/{+path}","compare_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/merges","archive_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/downloads","issues_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues{/number}","pulls_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls{/number}","milestones_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/milestones{/number}","notifications_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/labels{/name}","releases_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/releases{/id}","created_at":"2014-10-09T18:56:42Z","updated_at":"2016-01-08T19:28:14Z","pushed_at":"2016-01-08T20:11:15Z","git_url":"git://github.com/webcomponents/webcomponentsjs.git","ssh_url":"git@github.com:webcomponents/webcomponentsjs.git","clone_url":"https://github.com/webcomponents/webcomponentsjs.git","svn_url":"https://github.com/webcomponents/webcomponentsjs","homepage":"http://webcomponents.org/polyfills/","size":2816,"stargazers_count":1177,"watchers_count":1177,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":173,"mirror_url":null,"open_issues_count":175,"forks":173,"open_issues":175,"watchers":1177,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/476"},"html":{"href":"https://github.com/webcomponents/webcomponentsjs/pull/476"},"issue":{"href":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/476"},"comments":{"href":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/476/comments"},"review_comments":{"href":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/476/comments"},"review_comment":{"href":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/476/commits"},"statuses":{"href":"https://api.github.com/repos/webcomponents/webcomponentsjs/statuses/5fb333ab49a660fccf3256b0fa69a859ddb173ec"}}}}