{"action":"created","comment":{"url":"https://api.github.com/repos/yahoo/context-parser/pulls/comments/30865578","id":30865578,"diff_hunk":"@@ -365,6 +365,117 @@ Parser.prototype.getStartTagName = function() {\n     return this.tagNames[0];\n };\n \n+\n+\n+\n+// <iframe srcdoc=\"\"> is a scriptable attribute too\n+// Reference: https://html.spec.whatwg.org/multipage/embedded-content.html#attr-iframe-srcdoc\n+var scriptableTags = {","path":"src/context-parser.js","position":9,"original_position":9,"commit_id":"2b37e857c05f345297d2b6ebb8a20269e58a5247","original_commit_id":"2b37e857c05f345297d2b6ebb8a20269e58a5247","user":{"login":"neraliu","id":291417,"avatar_url":"https://avatars.githubusercontent.com/u/291417?v=3","gravatar_id":"","url":"https://api.github.com/users/neraliu","html_url":"https://github.com/neraliu","followers_url":"https://api.github.com/users/neraliu/followers","following_url":"https://api.github.com/users/neraliu/following{/other_user}","gists_url":"https://api.github.com/users/neraliu/gists{/gist_id}","starred_url":"https://api.github.com/users/neraliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neraliu/subscriptions","organizations_url":"https://api.github.com/users/neraliu/orgs","repos_url":"https://api.github.com/users/neraliu/repos","events_url":"https://api.github.com/users/neraliu/events{/privacy}","received_events_url":"https://api.github.com/users/neraliu/received_events","type":"User","site_admin":false},"body":"is scriptable tag the only dangerous tag we need to care about?","created_at":"2015-05-22T02:22:57Z","updated_at":"2015-05-22T02:22:57Z","html_url":"https://github.com/yahoo/context-parser/pull/17#discussion_r30865578","pull_request_url":"https://api.github.com/repos/yahoo/context-parser/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/yahoo/context-parser/pulls/comments/30865578"},"html":{"href":"https://github.com/yahoo/context-parser/pull/17#discussion_r30865578"},"pull_request":{"href":"https://api.github.com/repos/yahoo/context-parser/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/yahoo/context-parser/pulls/17","id":35614609,"html_url":"https://github.com/yahoo/context-parser/pull/17","diff_url":"https://github.com/yahoo/context-parser/pull/17.diff","patch_url":"https://github.com/yahoo/context-parser/pull/17.patch","issue_url":"https://api.github.com/repos/yahoo/context-parser/issues/17","number":17,"state":"open","locked":false,"title":"expose isScriptableTag() and getAttributeType()","user":{"login":"adon-at-work","id":8486533,"avatar_url":"https://avatars.githubusercontent.com/u/8486533?v=3","gravatar_id":"","url":"https://api.github.com/users/adon-at-work","html_url":"https://github.com/adon-at-work","followers_url":"https://api.github.com/users/adon-at-work/followers","following_url":"https://api.github.com/users/adon-at-work/following{/other_user}","gists_url":"https://api.github.com/users/adon-at-work/gists{/gist_id}","starred_url":"https://api.github.com/users/adon-at-work/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adon-at-work/subscriptions","organizations_url":"https://api.github.com/users/adon-at-work/orgs","repos_url":"https://api.github.com/users/adon-at-work/repos","events_url":"https://api.github.com/users/adon-at-work/events{/privacy}","received_events_url":"https://api.github.com/users/adon-at-work/received_events","type":"User","site_admin":false},"body":"enrich its feature by exposing \r\n(1)  whether a tag is scriptable \r\n(2)  returns the attribute type, e.g., URI, EVENT, CSS, etc.","created_at":"2015-05-18T09:09:41Z","updated_at":"2015-05-22T02:22:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3dca0c84ae21713d0f4aed512963a4f79b5e205","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yahoo/context-parser/pulls/17/commits","review_comments_url":"https://api.github.com/repos/yahoo/context-parser/pulls/17/comments","review_comment_url":"https://api.github.com/repos/yahoo/context-parser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yahoo/context-parser/issues/17/comments","statuses_url":"https://api.github.com/repos/yahoo/context-parser/statuses/2b37e857c05f345297d2b6ebb8a20269e58a5247","head":{"label":"yahoo:expose-tag-and-attr-types","ref":"expose-tag-and-attr-types","sha":"2b37e857c05f345297d2b6ebb8a20269e58a5247","user":{"login":"yahoo","id":16574,"avatar_url":"https://avatars.githubusercontent.com/u/16574?v=3","gravatar_id":"","url":"https://api.github.com/users/yahoo","html_url":"https://github.com/yahoo","followers_url":"https://api.github.com/users/yahoo/followers","following_url":"https://api.github.com/users/yahoo/following{/other_user}","gists_url":"https://api.github.com/users/yahoo/gists{/gist_id}","starred_url":"https://api.github.com/users/yahoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yahoo/subscriptions","organizations_url":"https://api.github.com/users/yahoo/orgs","repos_url":"https://api.github.com/users/yahoo/repos","events_url":"https://api.github.com/users/yahoo/events{/privacy}","received_events_url":"https://api.github.com/users/yahoo/received_events","type":"Organization","site_admin":false},"repo":{"id":30554328,"name":"context-parser","full_name":"yahoo/context-parser","owner":{"login":"yahoo","id":16574,"avatar_url":"https://avatars.githubusercontent.com/u/16574?v=3","gravatar_id":"","url":"https://api.github.com/users/yahoo","html_url":"https://github.com/yahoo","followers_url":"https://api.github.com/users/yahoo/followers","following_url":"https://api.github.com/users/yahoo/following{/other_user}","gists_url":"https://api.github.com/users/yahoo/gists{/gist_id}","starred_url":"https://api.github.com/users/yahoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yahoo/subscriptions","organizations_url":"https://api.github.com/users/yahoo/orgs","repos_url":"https://api.github.com/users/yahoo/repos","events_url":"https://api.github.com/users/yahoo/events{/privacy}","received_events_url":"https://api.github.com/users/yahoo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yahoo/context-parser","description":"HTML5 Context Parser","fork":false,"url":"https://api.github.com/repos/yahoo/context-parser","forks_url":"https://api.github.com/repos/yahoo/context-parser/forks","keys_url":"https://api.github.com/repos/yahoo/context-parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yahoo/context-parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yahoo/context-parser/teams","hooks_url":"https://api.github.com/repos/yahoo/context-parser/hooks","issue_events_url":"https://api.github.com/repos/yahoo/context-parser/issues/events{/number}","events_url":"https://api.github.com/repos/yahoo/context-parser/events","assignees_url":"https://api.github.com/repos/yahoo/context-parser/assignees{/user}","branches_url":"https://api.github.com/repos/yahoo/context-parser/branches{/branch}","tags_url":"https://api.github.com/repos/yahoo/context-parser/tags","blobs_url":"https://api.github.com/repos/yahoo/context-parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yahoo/context-parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yahoo/context-parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/yahoo/context-parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yahoo/context-parser/statuses/{sha}","languages_url":"https://api.github.com/repos/yahoo/context-parser/languages","stargazers_url":"https://api.github.com/repos/yahoo/context-parser/stargazers","contributors_url":"https://api.github.com/repos/yahoo/context-parser/contributors","subscribers_url":"https://api.github.com/repos/yahoo/context-parser/subscribers","subscription_url":"https://api.github.com/repos/yahoo/context-parser/subscription","commits_url":"https://api.github.com/repos/yahoo/context-parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/yahoo/context-parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/yahoo/context-parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/yahoo/context-parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/yahoo/context-parser/contents/{+path}","compare_url":"https://api.github.com/repos/yahoo/context-parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yahoo/context-parser/merges","archive_url":"https://api.github.com/repos/yahoo/context-parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yahoo/context-parser/downloads","issues_url":"https://api.github.com/repos/yahoo/context-parser/issues{/number}","pulls_url":"https://api.github.com/repos/yahoo/context-parser/pulls{/number}","milestones_url":"https://api.github.com/repos/yahoo/context-parser/milestones{/number}","notifications_url":"https://api.github.com/repos/yahoo/context-parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yahoo/context-parser/labels{/name}","releases_url":"https://api.github.com/repos/yahoo/context-parser/releases{/id}","created_at":"2015-02-09T19:35:03Z","updated_at":"2015-05-08T02:43:10Z","pushed_at":"2015-05-18T09:09:41Z","git_url":"git://github.com/yahoo/context-parser.git","ssh_url":"git@github.com:yahoo/context-parser.git","clone_url":"https://github.com/yahoo/context-parser.git","svn_url":"https://github.com/yahoo/context-parser","homepage":"","size":5188,"stargazers_count":10,"watchers_count":10,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":10,"default_branch":"master"}},"base":{"label":"yahoo:master","ref":"master","sha":"22da0887e05273a667bfc2ecdf776f8af1910361","user":{"login":"yahoo","id":16574,"avatar_url":"https://avatars.githubusercontent.com/u/16574?v=3","gravatar_id":"","url":"https://api.github.com/users/yahoo","html_url":"https://github.com/yahoo","followers_url":"https://api.github.com/users/yahoo/followers","following_url":"https://api.github.com/users/yahoo/following{/other_user}","gists_url":"https://api.github.com/users/yahoo/gists{/gist_id}","starred_url":"https://api.github.com/users/yahoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yahoo/subscriptions","organizations_url":"https://api.github.com/users/yahoo/orgs","repos_url":"https://api.github.com/users/yahoo/repos","events_url":"https://api.github.com/users/yahoo/events{/privacy}","received_events_url":"https://api.github.com/users/yahoo/received_events","type":"Organization","site_admin":false},"repo":{"id":30554328,"name":"context-parser","full_name":"yahoo/context-parser","owner":{"login":"yahoo","id":16574,"avatar_url":"https://avatars.githubusercontent.com/u/16574?v=3","gravatar_id":"","url":"https://api.github.com/users/yahoo","html_url":"https://github.com/yahoo","followers_url":"https://api.github.com/users/yahoo/followers","following_url":"https://api.github.com/users/yahoo/following{/other_user}","gists_url":"https://api.github.com/users/yahoo/gists{/gist_id}","starred_url":"https://api.github.com/users/yahoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yahoo/subscriptions","organizations_url":"https://api.github.com/users/yahoo/orgs","repos_url":"https://api.github.com/users/yahoo/repos","events_url":"https://api.github.com/users/yahoo/events{/privacy}","received_events_url":"https://api.github.com/users/yahoo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yahoo/context-parser","description":"HTML5 Context Parser","fork":false,"url":"https://api.github.com/repos/yahoo/context-parser","forks_url":"https://api.github.com/repos/yahoo/context-parser/forks","keys_url":"https://api.github.com/repos/yahoo/context-parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yahoo/context-parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yahoo/context-parser/teams","hooks_url":"https://api.github.com/repos/yahoo/context-parser/hooks","issue_events_url":"https://api.github.com/repos/yahoo/context-parser/issues/events{/number}","events_url":"https://api.github.com/repos/yahoo/context-parser/events","assignees_url":"https://api.github.com/repos/yahoo/context-parser/assignees{/user}","branches_url":"https://api.github.com/repos/yahoo/context-parser/branches{/branch}","tags_url":"https://api.github.com/repos/yahoo/context-parser/tags","blobs_url":"https://api.github.com/repos/yahoo/context-parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yahoo/context-parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yahoo/context-parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/yahoo/context-parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yahoo/context-parser/statuses/{sha}","languages_url":"https://api.github.com/repos/yahoo/context-parser/languages","stargazers_url":"https://api.github.com/repos/yahoo/context-parser/stargazers","contributors_url":"https://api.github.com/repos/yahoo/context-parser/contributors","subscribers_url":"https://api.github.com/repos/yahoo/context-parser/subscribers","subscription_url":"https://api.github.com/repos/yahoo/context-parser/subscription","commits_url":"https://api.github.com/repos/yahoo/context-parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/yahoo/context-parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/yahoo/context-parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/yahoo/context-parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/yahoo/context-parser/contents/{+path}","compare_url":"https://api.github.com/repos/yahoo/context-parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yahoo/context-parser/merges","archive_url":"https://api.github.com/repos/yahoo/context-parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yahoo/context-parser/downloads","issues_url":"https://api.github.com/repos/yahoo/context-parser/issues{/number}","pulls_url":"https://api.github.com/repos/yahoo/context-parser/pulls{/number}","milestones_url":"https://api.github.com/repos/yahoo/context-parser/milestones{/number}","notifications_url":"https://api.github.com/repos/yahoo/context-parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yahoo/context-parser/labels{/name}","releases_url":"https://api.github.com/repos/yahoo/context-parser/releases{/id}","created_at":"2015-02-09T19:35:03Z","updated_at":"2015-05-08T02:43:10Z","pushed_at":"2015-05-18T09:09:41Z","git_url":"git://github.com/yahoo/context-parser.git","ssh_url":"git@github.com:yahoo/context-parser.git","clone_url":"https://github.com/yahoo/context-parser.git","svn_url":"https://github.com/yahoo/context-parser","homepage":"","size":5188,"stargazers_count":10,"watchers_count":10,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yahoo/context-parser/pulls/17"},"html":{"href":"https://github.com/yahoo/context-parser/pull/17"},"issue":{"href":"https://api.github.com/repos/yahoo/context-parser/issues/17"},"comments":{"href":"https://api.github.com/repos/yahoo/context-parser/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/yahoo/context-parser/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/yahoo/context-parser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yahoo/context-parser/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/yahoo/context-parser/statuses/2b37e857c05f345297d2b6ebb8a20269e58a5247"}}}}