{"action":"created","comment":{"url":"https://api.github.com/repos/guardian/html-janitor/pulls/comments/41124680","id":41124680,"diff_hunk":"@@ -98,7 +98,13 @@\n             isNotTopContainer;\n \n       var nodeName = node.nodeName.toLowerCase();\n-      var allowedAttrs = this.config.tags[nodeName];\n+\n+      var allowedAttrs;","path":"src/html-janitor.js","position":6,"original_position":6,"commit_id":"f3ea939c37232fa5d01f8dae7cec4bee0e1d3235","original_commit_id":"f3ea939c37232fa5d01f8dae7cec4bee0e1d3235","user":{"login":"rrees","id":7312,"avatar_url":"https://avatars.githubusercontent.com/u/7312?v=3","gravatar_id":"","url":"https://api.github.com/users/rrees","html_url":"https://github.com/rrees","followers_url":"https://api.github.com/users/rrees/followers","following_url":"https://api.github.com/users/rrees/following{/other_user}","gists_url":"https://api.github.com/users/rrees/gists{/gist_id}","starred_url":"https://api.github.com/users/rrees/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrees/subscriptions","organizations_url":"https://api.github.com/users/rrees/orgs","repos_url":"https://api.github.com/users/rrees/repos","events_url":"https://api.github.com/users/rrees/events{/privacy}","received_events_url":"https://api.github.com/users/rrees/received_events","type":"User","site_admin":false},"body":"Let's turn this into an assignment from a function.","created_at":"2015-10-05T09:24:29Z","updated_at":"2015-10-05T09:24:29Z","html_url":"https://github.com/guardian/html-janitor/pull/28#discussion_r41124680","pull_request_url":"https://api.github.com/repos/guardian/html-janitor/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/guardian/html-janitor/pulls/comments/41124680"},"html":{"href":"https://github.com/guardian/html-janitor/pull/28#discussion_r41124680"},"pull_request":{"href":"https://api.github.com/repos/guardian/html-janitor/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/guardian/html-janitor/pulls/28","id":46749315,"html_url":"https://github.com/guardian/html-janitor/pull/28","diff_url":"https://github.com/guardian/html-janitor/pull/28.diff","patch_url":"https://github.com/guardian/html-janitor/pull/28.patch","issue_url":"https://api.github.com/repos/guardian/html-janitor/issues/28","number":28,"state":"open","locked":false,"title":"Archive/more flexibility","user":{"login":"bradvogel","id":821706,"avatar_url":"https://avatars.githubusercontent.com/u/821706?v=3","gravatar_id":"","url":"https://api.github.com/users/bradvogel","html_url":"https://github.com/bradvogel","followers_url":"https://api.github.com/users/bradvogel/followers","following_url":"https://api.github.com/users/bradvogel/following{/other_user}","gists_url":"https://api.github.com/users/bradvogel/gists{/gist_id}","starred_url":"https://api.github.com/users/bradvogel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradvogel/subscriptions","organizations_url":"https://api.github.com/users/bradvogel/orgs","repos_url":"https://api.github.com/users/bradvogel/repos","events_url":"https://api.github.com/users/bradvogel/events{/privacy}","received_events_url":"https://api.github.com/users/bradvogel/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-05T07:03:36Z","updated_at":"2015-10-05T09:24:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e8225beb35cdb3a34120a62d3096f22e39b4ce22","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/guardian/html-janitor/pulls/28/commits","review_comments_url":"https://api.github.com/repos/guardian/html-janitor/pulls/28/comments","review_comment_url":"https://api.github.com/repos/guardian/html-janitor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/guardian/html-janitor/issues/28/comments","statuses_url":"https://api.github.com/repos/guardian/html-janitor/statuses/f3ea939c37232fa5d01f8dae7cec4bee0e1d3235","head":{"label":"mixmaxhq:archive/more-flexibility","ref":"archive/more-flexibility","sha":"f3ea939c37232fa5d01f8dae7cec4bee0e1d3235","user":{"login":"mixmaxhq","id":7530142,"avatar_url":"https://avatars.githubusercontent.com/u/7530142?v=3","gravatar_id":"","url":"https://api.github.com/users/mixmaxhq","html_url":"https://github.com/mixmaxhq","followers_url":"https://api.github.com/users/mixmaxhq/followers","following_url":"https://api.github.com/users/mixmaxhq/following{/other_user}","gists_url":"https://api.github.com/users/mixmaxhq/gists{/gist_id}","starred_url":"https://api.github.com/users/mixmaxhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixmaxhq/subscriptions","organizations_url":"https://api.github.com/users/mixmaxhq/orgs","repos_url":"https://api.github.com/users/mixmaxhq/repos","events_url":"https://api.github.com/users/mixmaxhq/events{/privacy}","received_events_url":"https://api.github.com/users/mixmaxhq/received_events","type":"Organization","site_admin":false},"repo":{"id":43347189,"name":"html-janitor","full_name":"mixmaxhq/html-janitor","owner":{"login":"mixmaxhq","id":7530142,"avatar_url":"https://avatars.githubusercontent.com/u/7530142?v=3","gravatar_id":"","url":"https://api.github.com/users/mixmaxhq","html_url":"https://github.com/mixmaxhq","followers_url":"https://api.github.com/users/mixmaxhq/followers","following_url":"https://api.github.com/users/mixmaxhq/following{/other_user}","gists_url":"https://api.github.com/users/mixmaxhq/gists{/gist_id}","starred_url":"https://api.github.com/users/mixmaxhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixmaxhq/subscriptions","organizations_url":"https://api.github.com/users/mixmaxhq/orgs","repos_url":"https://api.github.com/users/mixmaxhq/repos","events_url":"https://api.github.com/users/mixmaxhq/events{/privacy}","received_events_url":"https://api.github.com/users/mixmaxhq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mixmaxhq/html-janitor","description":"Sanitises HTML","fork":true,"url":"https://api.github.com/repos/mixmaxhq/html-janitor","forks_url":"https://api.github.com/repos/mixmaxhq/html-janitor/forks","keys_url":"https://api.github.com/repos/mixmaxhq/html-janitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mixmaxhq/html-janitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mixmaxhq/html-janitor/teams","hooks_url":"https://api.github.com/repos/mixmaxhq/html-janitor/hooks","issue_events_url":"https://api.github.com/repos/mixmaxhq/html-janitor/issues/events{/number}","events_url":"https://api.github.com/repos/mixmaxhq/html-janitor/events","assignees_url":"https://api.github.com/repos/mixmaxhq/html-janitor/assignees{/user}","branches_url":"https://api.github.com/repos/mixmaxhq/html-janitor/branches{/branch}","tags_url":"https://api.github.com/repos/mixmaxhq/html-janitor/tags","blobs_url":"https://api.github.com/repos/mixmaxhq/html-janitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mixmaxhq/html-janitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mixmaxhq/html-janitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/mixmaxhq/html-janitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mixmaxhq/html-janitor/statuses/{sha}","languages_url":"https://api.github.com/repos/mixmaxhq/html-janitor/languages","stargazers_url":"https://api.github.com/repos/mixmaxhq/html-janitor/stargazers","contributors_url":"https://api.github.com/repos/mixmaxhq/html-janitor/contributors","subscribers_url":"https://api.github.com/repos/mixmaxhq/html-janitor/subscribers","subscription_url":"https://api.github.com/repos/mixmaxhq/html-janitor/subscription","commits_url":"https://api.github.com/repos/mixmaxhq/html-janitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/mixmaxhq/html-janitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/mixmaxhq/html-janitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/mixmaxhq/html-janitor/issues/comments{/number}","contents_url":"https://api.github.com/repos/mixmaxhq/html-janitor/contents/{+path}","compare_url":"https://api.github.com/repos/mixmaxhq/html-janitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mixmaxhq/html-janitor/merges","archive_url":"https://api.github.com/repos/mixmaxhq/html-janitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mixmaxhq/html-janitor/downloads","issues_url":"https://api.github.com/repos/mixmaxhq/html-janitor/issues{/number}","pulls_url":"https://api.github.com/repos/mixmaxhq/html-janitor/pulls{/number}","milestones_url":"https://api.github.com/repos/mixmaxhq/html-janitor/milestones{/number}","notifications_url":"https://api.github.com/repos/mixmaxhq/html-janitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mixmaxhq/html-janitor/labels{/name}","releases_url":"https://api.github.com/repos/mixmaxhq/html-janitor/releases{/id}","created_at":"2015-09-29T05:35:33Z","updated_at":"2015-09-29T05:35:33Z","pushed_at":"2015-10-05T07:03:24Z","git_url":"git://github.com/mixmaxhq/html-janitor.git","ssh_url":"git@github.com:mixmaxhq/html-janitor.git","clone_url":"https://github.com/mixmaxhq/html-janitor.git","svn_url":"https://github.com/mixmaxhq/html-janitor","homepage":null,"size":178,"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":"guardian:master","ref":"master","sha":"42676a886262e802f74f764a4f7a4703d04af552","user":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":16278638,"name":"html-janitor","full_name":"guardian/html-janitor","owner":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guardian/html-janitor","description":"Sanitises HTML","fork":false,"url":"https://api.github.com/repos/guardian/html-janitor","forks_url":"https://api.github.com/repos/guardian/html-janitor/forks","keys_url":"https://api.github.com/repos/guardian/html-janitor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/html-janitor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/html-janitor/teams","hooks_url":"https://api.github.com/repos/guardian/html-janitor/hooks","issue_events_url":"https://api.github.com/repos/guardian/html-janitor/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/html-janitor/events","assignees_url":"https://api.github.com/repos/guardian/html-janitor/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/html-janitor/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/html-janitor/tags","blobs_url":"https://api.github.com/repos/guardian/html-janitor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/html-janitor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/html-janitor/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/html-janitor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/html-janitor/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/html-janitor/languages","stargazers_url":"https://api.github.com/repos/guardian/html-janitor/stargazers","contributors_url":"https://api.github.com/repos/guardian/html-janitor/contributors","subscribers_url":"https://api.github.com/repos/guardian/html-janitor/subscribers","subscription_url":"https://api.github.com/repos/guardian/html-janitor/subscription","commits_url":"https://api.github.com/repos/guardian/html-janitor/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/html-janitor/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/html-janitor/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/html-janitor/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/html-janitor/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/html-janitor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/html-janitor/merges","archive_url":"https://api.github.com/repos/guardian/html-janitor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/html-janitor/downloads","issues_url":"https://api.github.com/repos/guardian/html-janitor/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/html-janitor/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/html-janitor/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/html-janitor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/html-janitor/labels{/name}","releases_url":"https://api.github.com/repos/guardian/html-janitor/releases{/id}","created_at":"2014-01-27T12:39:46Z","updated_at":"2015-09-30T14:17:46Z","pushed_at":"2015-10-05T07:03:37Z","git_url":"git://github.com/guardian/html-janitor.git","ssh_url":"git@github.com:guardian/html-janitor.git","clone_url":"https://github.com/guardian/html-janitor.git","svn_url":"https://github.com/guardian/html-janitor","homepage":null,"size":539,"stargazers_count":124,"watchers_count":124,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":3,"forks":15,"open_issues":3,"watchers":124,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/guardian/html-janitor/pulls/28"},"html":{"href":"https://github.com/guardian/html-janitor/pull/28"},"issue":{"href":"https://api.github.com/repos/guardian/html-janitor/issues/28"},"comments":{"href":"https://api.github.com/repos/guardian/html-janitor/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/guardian/html-janitor/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/guardian/html-janitor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/guardian/html-janitor/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/guardian/html-janitor/statuses/f3ea939c37232fa5d01f8dae7cec4bee0e1d3235"}}}}