{"action":"created","comment":{"url":"https://api.github.com/repos/jquery/jquery/pulls/comments/93926714","pull_request_review_id":14458118,"id":93926714,"diff_hunk":"@@ -743,6 +743,49 @@ QUnit.test( \"contents()\", function( assert ) {\n \tassert.equal( c[ 0 ].nodeValue, \"hi\", \"Check node,textnode,comment contents is just the one from span\" );\n } );\n \n+QUnit.test( \"contents() for <template />\", function( assert ) {\n+\tassert.expect( 6 );\n+\n+    jQuery( \"#qunit-fixture\" ).append(\n+        \"<template id=\\\"template\\\">\" +\n+        \"    <div id=\\\"template-div0\\\">\" +\n+        \"        <span>Hello, Web Component!</span>\" +\n+        \"    </div>\" +\n+        \"    <div id=\\\"template-div1\\\"></div>\" +\n+        \"    <div id=\\\"template-div2\\\"></div>\" +\n+        \"</template>\" +\n+        \"<form id=\\\"test_contents\\\">\" +\n+        \"    <input type=\\\"text\\\" name=\\\"contentDocument\\\" />\" +\n+        \"    <input type=\\\"text\\\" name=\\\"content\\\" />\" +\n+        \"</form>\"\n+    );\n+\n+    var c = jQuery( \"#template\" ).contents();","path":"test/unit/traversing.js","position":21,"original_position":21,"commit_id":"bdf7d351d720718e7ca95dc0b66a27eff1d8bb00","original_commit_id":"bdf7d351d720718e7ca95dc0b66a27eff1d8bb00","user":{"login":"markelog","id":945528,"avatar_url":"https://avatars.githubusercontent.com/u/945528?v=3","gravatar_id":"","url":"https://api.github.com/users/markelog","html_url":"https://github.com/markelog","followers_url":"https://api.github.com/users/markelog/followers","following_url":"https://api.github.com/users/markelog/following{/other_user}","gists_url":"https://api.github.com/users/markelog/gists{/gist_id}","starred_url":"https://api.github.com/users/markelog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markelog/subscriptions","organizations_url":"https://api.github.com/users/markelog/orgs","repos_url":"https://api.github.com/users/markelog/repos","events_url":"https://api.github.com/users/markelog/events{/privacy}","received_events_url":"https://api.github.com/users/markelog/received_events","type":"User","site_admin":false},"body":"Probably better to use more verbose variable name","created_at":"2016-12-27T12:32:02Z","updated_at":"2016-12-27T12:38:01Z","html_url":"https://github.com/jquery/jquery/pull/3462#discussion_r93926714","pull_request_url":"https://api.github.com/repos/jquery/jquery/pulls/3462","_links":{"self":{"href":"https://api.github.com/repos/jquery/jquery/pulls/comments/93926714"},"html":{"href":"https://github.com/jquery/jquery/pull/3462#discussion_r93926714"},"pull_request":{"href":"https://api.github.com/repos/jquery/jquery/pulls/3462"}}},"pull_request":{"url":"https://api.github.com/repos/jquery/jquery/pulls/3462","id":98743572,"html_url":"https://github.com/jquery/jquery/pull/3462","diff_url":"https://github.com/jquery/jquery/pull/3462.diff","patch_url":"https://github.com/jquery/jquery/pull/3462.patch","issue_url":"https://api.github.com/repos/jquery/jquery/issues/3462","number":3462,"state":"open","locked":false,"title":"Traversing: $.fn.contents() supports HTMLTemplateElement","user":{"login":"TechQuery","id":19969570,"avatar_url":"https://avatars.githubusercontent.com/u/19969570?v=3","gravatar_id":"","url":"https://api.github.com/users/TechQuery","html_url":"https://github.com/TechQuery","followers_url":"https://api.github.com/users/TechQuery/followers","following_url":"https://api.github.com/users/TechQuery/following{/other_user}","gists_url":"https://api.github.com/users/TechQuery/gists{/gist_id}","starred_url":"https://api.github.com/users/TechQuery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechQuery/subscriptions","organizations_url":"https://api.github.com/users/TechQuery/orgs","repos_url":"https://api.github.com/users/TechQuery/repos","events_url":"https://api.github.com/users/TechQuery/events{/privacy}","received_events_url":"https://api.github.com/users/TechQuery/received_events","type":"User","site_admin":false},"body":"### Summary ###\r\n\r\nAdd support to `$.fn.contents()` for [HTMLTemplateElement](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template).\r\n\r\nRelated with #3436\r\n\r\n\r\n### Checklist ###\r\n\r\n* [x] All authors have signed the CLA at https://contribute.jquery.com/CLA/\r\n* [x] New tests have been added to show the fix or feature works\r\n* [x] Grunt build and unit tests pass locally with these changes\r\n* [ ] If needed, a docs issue/PR was created at https://github.com/jquery/api.jquery.com","created_at":"2016-12-20T12:55:56Z","updated_at":"2016-12-27T12:38:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf80c82c2e8b012a1be63ae76bca8dade61250a6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jquery/jquery/pulls/3462/commits","review_comments_url":"https://api.github.com/repos/jquery/jquery/pulls/3462/comments","review_comment_url":"https://api.github.com/repos/jquery/jquery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jquery/jquery/issues/3462/comments","statuses_url":"https://api.github.com/repos/jquery/jquery/statuses/bdf7d351d720718e7ca95dc0b66a27eff1d8bb00","head":{"label":"TechQuery:master","ref":"master","sha":"bdf7d351d720718e7ca95dc0b66a27eff1d8bb00","user":{"login":"TechQuery","id":19969570,"avatar_url":"https://avatars.githubusercontent.com/u/19969570?v=3","gravatar_id":"","url":"https://api.github.com/users/TechQuery","html_url":"https://github.com/TechQuery","followers_url":"https://api.github.com/users/TechQuery/followers","following_url":"https://api.github.com/users/TechQuery/following{/other_user}","gists_url":"https://api.github.com/users/TechQuery/gists{/gist_id}","starred_url":"https://api.github.com/users/TechQuery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechQuery/subscriptions","organizations_url":"https://api.github.com/users/TechQuery/orgs","repos_url":"https://api.github.com/users/TechQuery/repos","events_url":"https://api.github.com/users/TechQuery/events{/privacy}","received_events_url":"https://api.github.com/users/TechQuery/received_events","type":"User","site_admin":false},"repo":{"id":76923243,"name":"jquery","full_name":"TechQuery/jquery","owner":{"login":"TechQuery","id":19969570,"avatar_url":"https://avatars.githubusercontent.com/u/19969570?v=3","gravatar_id":"","url":"https://api.github.com/users/TechQuery","html_url":"https://github.com/TechQuery","followers_url":"https://api.github.com/users/TechQuery/followers","following_url":"https://api.github.com/users/TechQuery/following{/other_user}","gists_url":"https://api.github.com/users/TechQuery/gists{/gist_id}","starred_url":"https://api.github.com/users/TechQuery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechQuery/subscriptions","organizations_url":"https://api.github.com/users/TechQuery/orgs","repos_url":"https://api.github.com/users/TechQuery/repos","events_url":"https://api.github.com/users/TechQuery/events{/privacy}","received_events_url":"https://api.github.com/users/TechQuery/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TechQuery/jquery","description":"jQuery JavaScript Library","fork":true,"url":"https://api.github.com/repos/TechQuery/jquery","forks_url":"https://api.github.com/repos/TechQuery/jquery/forks","keys_url":"https://api.github.com/repos/TechQuery/jquery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TechQuery/jquery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TechQuery/jquery/teams","hooks_url":"https://api.github.com/repos/TechQuery/jquery/hooks","issue_events_url":"https://api.github.com/repos/TechQuery/jquery/issues/events{/number}","events_url":"https://api.github.com/repos/TechQuery/jquery/events","assignees_url":"https://api.github.com/repos/TechQuery/jquery/assignees{/user}","branches_url":"https://api.github.com/repos/TechQuery/jquery/branches{/branch}","tags_url":"https://api.github.com/repos/TechQuery/jquery/tags","blobs_url":"https://api.github.com/repos/TechQuery/jquery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TechQuery/jquery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TechQuery/jquery/git/refs{/sha}","trees_url":"https://api.github.com/repos/TechQuery/jquery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TechQuery/jquery/statuses/{sha}","languages_url":"https://api.github.com/repos/TechQuery/jquery/languages","stargazers_url":"https://api.github.com/repos/TechQuery/jquery/stargazers","contributors_url":"https://api.github.com/repos/TechQuery/jquery/contributors","subscribers_url":"https://api.github.com/repos/TechQuery/jquery/subscribers","subscription_url":"https://api.github.com/repos/TechQuery/jquery/subscription","commits_url":"https://api.github.com/repos/TechQuery/jquery/commits{/sha}","git_commits_url":"https://api.github.com/repos/TechQuery/jquery/git/commits{/sha}","comments_url":"https://api.github.com/repos/TechQuery/jquery/comments{/number}","issue_comment_url":"https://api.github.com/repos/TechQuery/jquery/issues/comments{/number}","contents_url":"https://api.github.com/repos/TechQuery/jquery/contents/{+path}","compare_url":"https://api.github.com/repos/TechQuery/jquery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TechQuery/jquery/merges","archive_url":"https://api.github.com/repos/TechQuery/jquery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TechQuery/jquery/downloads","issues_url":"https://api.github.com/repos/TechQuery/jquery/issues{/number}","pulls_url":"https://api.github.com/repos/TechQuery/jquery/pulls{/number}","milestones_url":"https://api.github.com/repos/TechQuery/jquery/milestones{/number}","notifications_url":"https://api.github.com/repos/TechQuery/jquery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TechQuery/jquery/labels{/name}","releases_url":"https://api.github.com/repos/TechQuery/jquery/releases{/id}","deployments_url":"https://api.github.com/repos/TechQuery/jquery/deployments","created_at":"2016-12-20T04:33:29Z","updated_at":"2016-12-20T04:33:41Z","pushed_at":"2016-12-27T11:50:56Z","git_url":"git://github.com/TechQuery/jquery.git","ssh_url":"git@github.com:TechQuery/jquery.git","clone_url":"https://github.com/TechQuery/jquery.git","svn_url":"https://github.com/TechQuery/jquery","homepage":"https://jquery.com/","size":27028,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"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":"jquery:master","ref":"master","sha":"bf3a43eff8682b59cec785be6003753fa4b93706","user":{"login":"jquery","id":70142,"avatar_url":"https://avatars.githubusercontent.com/u/70142?v=3","gravatar_id":"","url":"https://api.github.com/users/jquery","html_url":"https://github.com/jquery","followers_url":"https://api.github.com/users/jquery/followers","following_url":"https://api.github.com/users/jquery/following{/other_user}","gists_url":"https://api.github.com/users/jquery/gists{/gist_id}","starred_url":"https://api.github.com/users/jquery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquery/subscriptions","organizations_url":"https://api.github.com/users/jquery/orgs","repos_url":"https://api.github.com/users/jquery/repos","events_url":"https://api.github.com/users/jquery/events{/privacy}","received_events_url":"https://api.github.com/users/jquery/received_events","type":"Organization","site_admin":false},"repo":{"id":167174,"name":"jquery","full_name":"jquery/jquery","owner":{"login":"jquery","id":70142,"avatar_url":"https://avatars.githubusercontent.com/u/70142?v=3","gravatar_id":"","url":"https://api.github.com/users/jquery","html_url":"https://github.com/jquery","followers_url":"https://api.github.com/users/jquery/followers","following_url":"https://api.github.com/users/jquery/following{/other_user}","gists_url":"https://api.github.com/users/jquery/gists{/gist_id}","starred_url":"https://api.github.com/users/jquery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jquery/subscriptions","organizations_url":"https://api.github.com/users/jquery/orgs","repos_url":"https://api.github.com/users/jquery/repos","events_url":"https://api.github.com/users/jquery/events{/privacy}","received_events_url":"https://api.github.com/users/jquery/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jquery/jquery","description":"jQuery JavaScript Library","fork":false,"url":"https://api.github.com/repos/jquery/jquery","forks_url":"https://api.github.com/repos/jquery/jquery/forks","keys_url":"https://api.github.com/repos/jquery/jquery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jquery/jquery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jquery/jquery/teams","hooks_url":"https://api.github.com/repos/jquery/jquery/hooks","issue_events_url":"https://api.github.com/repos/jquery/jquery/issues/events{/number}","events_url":"https://api.github.com/repos/jquery/jquery/events","assignees_url":"https://api.github.com/repos/jquery/jquery/assignees{/user}","branches_url":"https://api.github.com/repos/jquery/jquery/branches{/branch}","tags_url":"https://api.github.com/repos/jquery/jquery/tags","blobs_url":"https://api.github.com/repos/jquery/jquery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jquery/jquery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jquery/jquery/git/refs{/sha}","trees_url":"https://api.github.com/repos/jquery/jquery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jquery/jquery/statuses/{sha}","languages_url":"https://api.github.com/repos/jquery/jquery/languages","stargazers_url":"https://api.github.com/repos/jquery/jquery/stargazers","contributors_url":"https://api.github.com/repos/jquery/jquery/contributors","subscribers_url":"https://api.github.com/repos/jquery/jquery/subscribers","subscription_url":"https://api.github.com/repos/jquery/jquery/subscription","commits_url":"https://api.github.com/repos/jquery/jquery/commits{/sha}","git_commits_url":"https://api.github.com/repos/jquery/jquery/git/commits{/sha}","comments_url":"https://api.github.com/repos/jquery/jquery/comments{/number}","issue_comment_url":"https://api.github.com/repos/jquery/jquery/issues/comments{/number}","contents_url":"https://api.github.com/repos/jquery/jquery/contents/{+path}","compare_url":"https://api.github.com/repos/jquery/jquery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jquery/jquery/merges","archive_url":"https://api.github.com/repos/jquery/jquery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jquery/jquery/downloads","issues_url":"https://api.github.com/repos/jquery/jquery/issues{/number}","pulls_url":"https://api.github.com/repos/jquery/jquery/pulls{/number}","milestones_url":"https://api.github.com/repos/jquery/jquery/milestones{/number}","notifications_url":"https://api.github.com/repos/jquery/jquery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jquery/jquery/labels{/name}","releases_url":"https://api.github.com/repos/jquery/jquery/releases{/id}","deployments_url":"https://api.github.com/repos/jquery/jquery/deployments","created_at":"2009-04-03T15:20:14Z","updated_at":"2016-12-27T12:25:23Z","pushed_at":"2016-12-27T11:51:00Z","git_url":"git://github.com/jquery/jquery.git","ssh_url":"git@github.com:jquery/jquery.git","clone_url":"https://github.com/jquery/jquery.git","svn_url":"https://github.com/jquery/jquery","homepage":"https://jquery.com/","size":27021,"stargazers_count":42798,"watchers_count":42798,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":11861,"mirror_url":null,"open_issues_count":79,"forks":11861,"open_issues":79,"watchers":42798,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jquery/jquery/pulls/3462"},"html":{"href":"https://github.com/jquery/jquery/pull/3462"},"issue":{"href":"https://api.github.com/repos/jquery/jquery/issues/3462"},"comments":{"href":"https://api.github.com/repos/jquery/jquery/issues/3462/comments"},"review_comments":{"href":"https://api.github.com/repos/jquery/jquery/pulls/3462/comments"},"review_comment":{"href":"https://api.github.com/repos/jquery/jquery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jquery/jquery/pulls/3462/commits"},"statuses":{"href":"https://api.github.com/repos/jquery/jquery/statuses/bdf7d351d720718e7ca95dc0b66a27eff1d8bb00"}}}}
{"actor":{"display_login":"markelog"}}