{"action":"created","comment":{"url":"https://api.github.com/repos/Polymer/polymer/pulls/comments/29357554","id":29357554,"diff_hunk":"@@ -402,6 +535,107 @@\n         return n$ ? Array.prototype.slice.call(n$) : [];\r\n       };\r\n \r\n+      Object.defineProperties(DomApi.prototype, {\r\n+\r\n+        childNodes: {\r\n+          get: function() {\r\n+            return Array.prototype.slice.call(this.node.childNodes);\r\n+          },\r\n+          configurable: true\r\n+        },\r\n+\r\n+        children: {\r\n+          get: function() {\r\n+            return Array.prototype.slice.call(this.node.children);\r\n+          },\r\n+          configurable: true  \r\n+        },\r\n+\r\n+        parentNode: {\r\n+          get: function() {\r\n+            return this.node.parentNode;\r\n+          },\r\n+          configurable: true  \r\n+        },\r\n+\r\n+        firstChild: {\r\n+          get: function() {\r\n+            return this.node.firstChild;\r\n+          },\r\n+          configurable: true  \r\n+        },\r\n+\r\n+        lastChild: {\r\n+          get: function() {\r\n+            return this.node.lastChild;\r\n+          },\r\n+          configurable: true  \r\n+        },\r\n+\r\n+        nextSibling: {\r\n+          get: function() {\r\n+            return this.node.nextSibling;\r\n+          },\r\n+          configurable: true  \r\n+        },\r\n+\r\n+        previousSibling: {\r\n+          get: function() {\r\n+            return this.node.previousSibling;\r\n+          },\r\n+          configurable: true  \r\n+        },\r\n+\r\n+        firstElementChild: {\r\n+          get: function() {\r\n+            return this.node.firstElementChild;\r\n+          },\r\n+          configurable: true  \r\n+        },\r\n+\r\n+        lastElementChild: {\r\n+          get: function() {\r\n+            return this.node.lastElementChild;\r\n+          },\r\n+          configurable: true  \r\n+        },\r\n+\r\n+        nextElementSibling: {\r\n+          get: function() {\r\n+            return this.node.nextElementSibling;\r\n+          },\r\n+          configurable: true  \r\n+        },\r\n+\r\n+        previousElementSibling: {\r\n+          get: function() {\r\n+            return this.node.previousElementSibling;\r\n+          },\r\n+          configurable: true  \r\n+        },\r\n+\r\n+        // textContent / innerHTML\r\n+        textContent: {\r\n+          get: function() {\r\n+            return this.node.textContent;\r\n+          },\r\n+          set: function(value) {\r\n+            return this.node.textContent = value;\r\n+          },\r\n+          configurable: true  \r\n+        },\r\n+\r\n+        innerHTML: {\r\n+          get: function() {\r\n+            return this.node.innerHTML;\r\n+          },\r\n+          set: function(value) {\r\n+            return this.node.innerHTML = value;\r\n+          },\r\n+          configurable: true  \r\n+        }\r\n+\r\n+      });\r","path":"src/lib/dom-api.html","position":402,"original_position":402,"commit_id":"c5a216dcef1e0b0e4c8ce4a3686e836fc6127211","original_commit_id":"c5a216dcef1e0b0e4c8ce4a3686e836fc6127211","user":{"login":"kevinpschaaf","id":1354932,"avatar_url":"https://avatars.githubusercontent.com/u/1354932?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinpschaaf","html_url":"https://github.com/kevinpschaaf","followers_url":"https://api.github.com/users/kevinpschaaf/followers","following_url":"https://api.github.com/users/kevinpschaaf/following{/other_user}","gists_url":"https://api.github.com/users/kevinpschaaf/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinpschaaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinpschaaf/subscriptions","organizations_url":"https://api.github.com/users/kevinpschaaf/orgs","repos_url":"https://api.github.com/users/kevinpschaaf/repos","events_url":"https://api.github.com/users/kevinpschaaf/events{/privacy}","received_events_url":"https://api.github.com/users/kevinpschaaf/received_events","type":"User","site_admin":false},"body":"Factory-ize the native wrappers to reduce MLOCs","created_at":"2015-04-29T17:12:59Z","updated_at":"2015-04-29T17:12:59Z","html_url":"https://github.com/Polymer/polymer/pull/1462#discussion_r29357554","pull_request_url":"https://api.github.com/repos/Polymer/polymer/pulls/1462","_links":{"self":{"href":"https://api.github.com/repos/Polymer/polymer/pulls/comments/29357554"},"html":{"href":"https://github.com/Polymer/polymer/pull/1462#discussion_r29357554"},"pull_request":{"href":"https://api.github.com/repos/Polymer/polymer/pulls/1462"}}},"pull_request":{"url":"https://api.github.com/repos/Polymer/polymer/pulls/1462","id":34382650,"html_url":"https://github.com/Polymer/polymer/pull/1462","diff_url":"https://github.com/Polymer/polymer/pull/1462.diff","patch_url":"https://github.com/Polymer/polymer/pull/1462.patch","issue_url":"https://api.github.com/repos/Polymer/polymer/issues/1462","number":1462,"state":"open","locked":false,"title":"0.8 patching","user":{"login":"sorvell","id":78891,"avatar_url":"https://avatars.githubusercontent.com/u/78891?v=3","gravatar_id":"","url":"https://api.github.com/users/sorvell","html_url":"https://github.com/sorvell","followers_url":"https://api.github.com/users/sorvell/followers","following_url":"https://api.github.com/users/sorvell/following{/other_user}","gists_url":"https://api.github.com/users/sorvell/gists{/gist_id}","starred_url":"https://api.github.com/users/sorvell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorvell/subscriptions","organizations_url":"https://api.github.com/users/sorvell/orgs","repos_url":"https://api.github.com/users/sorvell/repos","events_url":"https://api.github.com/users/sorvell/events{/privacy}","received_events_url":"https://api.github.com/users/sorvell/received_events","type":"User","site_admin":false},"body":"Adds additional accessors to Polymer.dom: first/last child/ElementChild, previous/next sibling/ElementSibling, textContent, innerHTML\r\n\r\nAdds experimental `patch-dom.html` import which patches dom that interacts with Shady DOM such that normal dom tree traversal and mutation api's can be used. This can enhance interoperation with 3rd party code that is not aware of Polymer.dom.","created_at":"2015-04-29T16:47:26Z","updated_at":"2015-04-29T17:12:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"77b80d67e8122349eaf3e578f537e02263d62024","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Polymer/polymer/pulls/1462/commits","review_comments_url":"https://api.github.com/repos/Polymer/polymer/pulls/1462/comments","review_comment_url":"https://api.github.com/repos/Polymer/polymer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Polymer/polymer/issues/1462/comments","statuses_url":"https://api.github.com/repos/Polymer/polymer/statuses/c5a216dcef1e0b0e4c8ce4a3686e836fc6127211","head":{"label":"Polymer:0.8-patching","ref":"0.8-patching","sha":"c5a216dcef1e0b0e4c8ce4a3686e836fc6127211","user":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"repo":{"id":5532320,"name":"polymer","full_name":"Polymer/polymer","owner":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Polymer/polymer","description":"Leverage the future of the web platform today.","fork":false,"url":"https://api.github.com/repos/Polymer/polymer","forks_url":"https://api.github.com/repos/Polymer/polymer/forks","keys_url":"https://api.github.com/repos/Polymer/polymer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Polymer/polymer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Polymer/polymer/teams","hooks_url":"https://api.github.com/repos/Polymer/polymer/hooks","issue_events_url":"https://api.github.com/repos/Polymer/polymer/issues/events{/number}","events_url":"https://api.github.com/repos/Polymer/polymer/events","assignees_url":"https://api.github.com/repos/Polymer/polymer/assignees{/user}","branches_url":"https://api.github.com/repos/Polymer/polymer/branches{/branch}","tags_url":"https://api.github.com/repos/Polymer/polymer/tags","blobs_url":"https://api.github.com/repos/Polymer/polymer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Polymer/polymer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Polymer/polymer/git/refs{/sha}","trees_url":"https://api.github.com/repos/Polymer/polymer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Polymer/polymer/statuses/{sha}","languages_url":"https://api.github.com/repos/Polymer/polymer/languages","stargazers_url":"https://api.github.com/repos/Polymer/polymer/stargazers","contributors_url":"https://api.github.com/repos/Polymer/polymer/contributors","subscribers_url":"https://api.github.com/repos/Polymer/polymer/subscribers","subscription_url":"https://api.github.com/repos/Polymer/polymer/subscription","commits_url":"https://api.github.com/repos/Polymer/polymer/commits{/sha}","git_commits_url":"https://api.github.com/repos/Polymer/polymer/git/commits{/sha}","comments_url":"https://api.github.com/repos/Polymer/polymer/comments{/number}","issue_comment_url":"https://api.github.com/repos/Polymer/polymer/issues/comments{/number}","contents_url":"https://api.github.com/repos/Polymer/polymer/contents/{+path}","compare_url":"https://api.github.com/repos/Polymer/polymer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Polymer/polymer/merges","archive_url":"https://api.github.com/repos/Polymer/polymer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Polymer/polymer/downloads","issues_url":"https://api.github.com/repos/Polymer/polymer/issues{/number}","pulls_url":"https://api.github.com/repos/Polymer/polymer/pulls{/number}","milestones_url":"https://api.github.com/repos/Polymer/polymer/milestones{/number}","notifications_url":"https://api.github.com/repos/Polymer/polymer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Polymer/polymer/labels{/name}","releases_url":"https://api.github.com/repos/Polymer/polymer/releases{/id}","created_at":"2012-08-23T20:56:30Z","updated_at":"2015-04-29T14:20:40Z","pushed_at":"2015-04-29T16:47:26Z","git_url":"git://github.com/Polymer/polymer.git","ssh_url":"git@github.com:Polymer/polymer.git","clone_url":"https://github.com/Polymer/polymer.git","svn_url":"https://github.com/Polymer/polymer","homepage":"","size":21715,"stargazers_count":9500,"watchers_count":9500,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":872,"mirror_url":null,"open_issues_count":464,"forks":872,"open_issues":464,"watchers":9500,"default_branch":"master"}},"base":{"label":"Polymer:0.8-preview","ref":"0.8-preview","sha":"108e95924479dd93a54d3590c822cc4ac0b89f8b","user":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"repo":{"id":5532320,"name":"polymer","full_name":"Polymer/polymer","owner":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Polymer/polymer","description":"Leverage the future of the web platform today.","fork":false,"url":"https://api.github.com/repos/Polymer/polymer","forks_url":"https://api.github.com/repos/Polymer/polymer/forks","keys_url":"https://api.github.com/repos/Polymer/polymer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Polymer/polymer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Polymer/polymer/teams","hooks_url":"https://api.github.com/repos/Polymer/polymer/hooks","issue_events_url":"https://api.github.com/repos/Polymer/polymer/issues/events{/number}","events_url":"https://api.github.com/repos/Polymer/polymer/events","assignees_url":"https://api.github.com/repos/Polymer/polymer/assignees{/user}","branches_url":"https://api.github.com/repos/Polymer/polymer/branches{/branch}","tags_url":"https://api.github.com/repos/Polymer/polymer/tags","blobs_url":"https://api.github.com/repos/Polymer/polymer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Polymer/polymer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Polymer/polymer/git/refs{/sha}","trees_url":"https://api.github.com/repos/Polymer/polymer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Polymer/polymer/statuses/{sha}","languages_url":"https://api.github.com/repos/Polymer/polymer/languages","stargazers_url":"https://api.github.com/repos/Polymer/polymer/stargazers","contributors_url":"https://api.github.com/repos/Polymer/polymer/contributors","subscribers_url":"https://api.github.com/repos/Polymer/polymer/subscribers","subscription_url":"https://api.github.com/repos/Polymer/polymer/subscription","commits_url":"https://api.github.com/repos/Polymer/polymer/commits{/sha}","git_commits_url":"https://api.github.com/repos/Polymer/polymer/git/commits{/sha}","comments_url":"https://api.github.com/repos/Polymer/polymer/comments{/number}","issue_comment_url":"https://api.github.com/repos/Polymer/polymer/issues/comments{/number}","contents_url":"https://api.github.com/repos/Polymer/polymer/contents/{+path}","compare_url":"https://api.github.com/repos/Polymer/polymer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Polymer/polymer/merges","archive_url":"https://api.github.com/repos/Polymer/polymer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Polymer/polymer/downloads","issues_url":"https://api.github.com/repos/Polymer/polymer/issues{/number}","pulls_url":"https://api.github.com/repos/Polymer/polymer/pulls{/number}","milestones_url":"https://api.github.com/repos/Polymer/polymer/milestones{/number}","notifications_url":"https://api.github.com/repos/Polymer/polymer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Polymer/polymer/labels{/name}","releases_url":"https://api.github.com/repos/Polymer/polymer/releases{/id}","created_at":"2012-08-23T20:56:30Z","updated_at":"2015-04-29T14:20:40Z","pushed_at":"2015-04-29T16:47:26Z","git_url":"git://github.com/Polymer/polymer.git","ssh_url":"git@github.com:Polymer/polymer.git","clone_url":"https://github.com/Polymer/polymer.git","svn_url":"https://github.com/Polymer/polymer","homepage":"","size":21715,"stargazers_count":9500,"watchers_count":9500,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":872,"mirror_url":null,"open_issues_count":464,"forks":872,"open_issues":464,"watchers":9500,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Polymer/polymer/pulls/1462"},"html":{"href":"https://github.com/Polymer/polymer/pull/1462"},"issue":{"href":"https://api.github.com/repos/Polymer/polymer/issues/1462"},"comments":{"href":"https://api.github.com/repos/Polymer/polymer/issues/1462/comments"},"review_comments":{"href":"https://api.github.com/repos/Polymer/polymer/pulls/1462/comments"},"review_comment":{"href":"https://api.github.com/repos/Polymer/polymer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Polymer/polymer/pulls/1462/commits"},"statuses":{"href":"https://api.github.com/repos/Polymer/polymer/statuses/c5a216dcef1e0b0e4c8ce4a3686e836fc6127211"}}}}