{"action":"created","comment":{"url":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/comments/26154795","id":26154795,"diff_hunk":"@@ -56,6 +53,15 @@\n     }\n   };\n \n+  // Not all browsers support Selection.extend. Some versions of IE do not support extend, code that checks\n+  // if extend exists in the Selection would fail the test if we define extend on the wrapper and it does not exist in\n+  // the browser Selection object.\n+  if (window.getSelection().extend){","path":"src/ShadowDOM/wrappers/Selection.js","position":17,"original_position":17,"commit_id":"4296063416b9093acc90576c55bd7b2eadba9928","original_commit_id":"4296063416b9093acc90576c55bd7b2eadba9928","user":{"login":"jmesserly","id":1081711,"avatar_url":"https://avatars.githubusercontent.com/u/1081711?v=3","gravatar_id":"","url":"https://api.github.com/users/jmesserly","html_url":"https://github.com/jmesserly","followers_url":"https://api.github.com/users/jmesserly/followers","following_url":"https://api.github.com/users/jmesserly/following{/other_user}","gists_url":"https://api.github.com/users/jmesserly/gists{/gist_id}","starred_url":"https://api.github.com/users/jmesserly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmesserly/subscriptions","organizations_url":"https://api.github.com/users/jmesserly/orgs","repos_url":"https://api.github.com/users/jmesserly/repos","events_url":"https://api.github.com/users/jmesserly/events{/privacy}","received_events_url":"https://api.github.com/users/jmesserly/received_events","type":"User","site_admin":false},"body":"also, I think you could do: `if (OriginalSelection.prototype.extend) {` and avoid calling getSelection","created_at":"2015-03-10T19:06:15Z","updated_at":"2015-03-10T19:06:15Z","html_url":"https://github.com/webcomponents/webcomponentsjs/pull/227#discussion_r26154795","pull_request_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/227","_links":{"self":{"href":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/comments/26154795"},"html":{"href":"https://github.com/webcomponents/webcomponentsjs/pull/227#discussion_r26154795"},"pull_request":{"href":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/227"}}},"pull_request":{"url":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/227","id":30719254,"html_url":"https://github.com/webcomponents/webcomponentsjs/pull/227","diff_url":"https://github.com/webcomponents/webcomponentsjs/pull/227.diff","patch_url":"https://github.com/webcomponents/webcomponentsjs/pull/227.patch","issue_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/227","number":227,"state":"open","locked":false,"title":"Fix Node.isEqualNode and document.createTreeWalker","user":{"login":"eeid26","id":5051095,"avatar_url":"https://avatars.githubusercontent.com/u/5051095?v=3","gravatar_id":"","url":"https://api.github.com/users/eeid26","html_url":"https://github.com/eeid26","followers_url":"https://api.github.com/users/eeid26/followers","following_url":"https://api.github.com/users/eeid26/following{/other_user}","gists_url":"https://api.github.com/users/eeid26/gists{/gist_id}","starred_url":"https://api.github.com/users/eeid26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eeid26/subscriptions","organizations_url":"https://api.github.com/users/eeid26/orgs","repos_url":"https://api.github.com/users/eeid26/repos","events_url":"https://api.github.com/users/eeid26/events{/privacy}","received_events_url":"https://api.github.com/users/eeid26/received_events","type":"User","site_admin":false},"body":"1) Node.isEqualNode returns false always.\r\n2) document.createTreeWalker always throws exception.\r\n\r\nIssues:\r\nhttps://github.com/webcomponents/webcomponentsjs/issues/228\r\nhttps://github.com/webcomponents/webcomponentsjs/issues/229\r\n","created_at":"2015-03-08T13:04:23Z","updated_at":"2015-03-10T19:06:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7617a5e1c9571f1dc9b52f0277ba74a31fc6a2b7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/227/commits","review_comments_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/227/comments","review_comment_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/227/comments","statuses_url":"https://api.github.com/repos/webcomponents/webcomponentsjs/statuses/4296063416b9093acc90576c55bd7b2eadba9928","head":{"label":"eeid26:master","ref":"master","sha":"4296063416b9093acc90576c55bd7b2eadba9928","user":{"login":"eeid26","id":5051095,"avatar_url":"https://avatars.githubusercontent.com/u/5051095?v=3","gravatar_id":"","url":"https://api.github.com/users/eeid26","html_url":"https://github.com/eeid26","followers_url":"https://api.github.com/users/eeid26/followers","following_url":"https://api.github.com/users/eeid26/following{/other_user}","gists_url":"https://api.github.com/users/eeid26/gists{/gist_id}","starred_url":"https://api.github.com/users/eeid26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eeid26/subscriptions","organizations_url":"https://api.github.com/users/eeid26/orgs","repos_url":"https://api.github.com/users/eeid26/repos","events_url":"https://api.github.com/users/eeid26/events{/privacy}","received_events_url":"https://api.github.com/users/eeid26/received_events","type":"User","site_admin":false},"repo":{"id":31849302,"name":"webcomponentsjs","full_name":"eeid26/webcomponentsjs","owner":{"login":"eeid26","id":5051095,"avatar_url":"https://avatars.githubusercontent.com/u/5051095?v=3","gravatar_id":"","url":"https://api.github.com/users/eeid26","html_url":"https://github.com/eeid26","followers_url":"https://api.github.com/users/eeid26/followers","following_url":"https://api.github.com/users/eeid26/following{/other_user}","gists_url":"https://api.github.com/users/eeid26/gists{/gist_id}","starred_url":"https://api.github.com/users/eeid26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eeid26/subscriptions","organizations_url":"https://api.github.com/users/eeid26/orgs","repos_url":"https://api.github.com/users/eeid26/repos","events_url":"https://api.github.com/users/eeid26/events{/privacy}","received_events_url":"https://api.github.com/users/eeid26/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eeid26/webcomponentsjs","description":"A suite of polyfills supporting the HTML Web Components specs","fork":true,"url":"https://api.github.com/repos/eeid26/webcomponentsjs","forks_url":"https://api.github.com/repos/eeid26/webcomponentsjs/forks","keys_url":"https://api.github.com/repos/eeid26/webcomponentsjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eeid26/webcomponentsjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eeid26/webcomponentsjs/teams","hooks_url":"https://api.github.com/repos/eeid26/webcomponentsjs/hooks","issue_events_url":"https://api.github.com/repos/eeid26/webcomponentsjs/issues/events{/number}","events_url":"https://api.github.com/repos/eeid26/webcomponentsjs/events","assignees_url":"https://api.github.com/repos/eeid26/webcomponentsjs/assignees{/user}","branches_url":"https://api.github.com/repos/eeid26/webcomponentsjs/branches{/branch}","tags_url":"https://api.github.com/repos/eeid26/webcomponentsjs/tags","blobs_url":"https://api.github.com/repos/eeid26/webcomponentsjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eeid26/webcomponentsjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eeid26/webcomponentsjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/eeid26/webcomponentsjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eeid26/webcomponentsjs/statuses/{sha}","languages_url":"https://api.github.com/repos/eeid26/webcomponentsjs/languages","stargazers_url":"https://api.github.com/repos/eeid26/webcomponentsjs/stargazers","contributors_url":"https://api.github.com/repos/eeid26/webcomponentsjs/contributors","subscribers_url":"https://api.github.com/repos/eeid26/webcomponentsjs/subscribers","subscription_url":"https://api.github.com/repos/eeid26/webcomponentsjs/subscription","commits_url":"https://api.github.com/repos/eeid26/webcomponentsjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/eeid26/webcomponentsjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/eeid26/webcomponentsjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/eeid26/webcomponentsjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/eeid26/webcomponentsjs/contents/{+path}","compare_url":"https://api.github.com/repos/eeid26/webcomponentsjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eeid26/webcomponentsjs/merges","archive_url":"https://api.github.com/repos/eeid26/webcomponentsjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eeid26/webcomponentsjs/downloads","issues_url":"https://api.github.com/repos/eeid26/webcomponentsjs/issues{/number}","pulls_url":"https://api.github.com/repos/eeid26/webcomponentsjs/pulls{/number}","milestones_url":"https://api.github.com/repos/eeid26/webcomponentsjs/milestones{/number}","notifications_url":"https://api.github.com/repos/eeid26/webcomponentsjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eeid26/webcomponentsjs/labels{/name}","releases_url":"https://api.github.com/repos/eeid26/webcomponentsjs/releases{/id}","created_at":"2015-03-08T12:44:06Z","updated_at":"2015-03-10T18:51:16Z","pushed_at":"2015-03-10T18:51:15Z","git_url":"git://github.com/eeid26/webcomponentsjs.git","ssh_url":"git@github.com:eeid26/webcomponentsjs.git","clone_url":"https://github.com/eeid26/webcomponentsjs.git","svn_url":"https://github.com/eeid26/webcomponentsjs","homepage":"http://webcomponents.org/polyfills/","size":2531,"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":"b437b5c8fb3032a9c7450b7a859e076c8d7d1f0f","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":"2015-03-10T10:20:29Z","pushed_at":"2015-03-10T02:57:28Z","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":2531,"stargazers_count":463,"watchers_count":463,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":76,"mirror_url":null,"open_issues_count":87,"forks":76,"open_issues":87,"watchers":463,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/227"},"html":{"href":"https://github.com/webcomponents/webcomponentsjs/pull/227"},"issue":{"href":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/227"},"comments":{"href":"https://api.github.com/repos/webcomponents/webcomponentsjs/issues/227/comments"},"review_comments":{"href":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/227/comments"},"review_comment":{"href":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/webcomponents/webcomponentsjs/pulls/227/commits"},"statuses":{"href":"https://api.github.com/repos/webcomponents/webcomponentsjs/statuses/4296063416b9093acc90576c55bd7b2eadba9928"}}}}