{"action":"created","issue":{"url":"https://api.github.com/repos/rgrove/sanitize/issues/180","repository_url":"https://api.github.com/repos/rgrove/sanitize","labels_url":"https://api.github.com/repos/rgrove/sanitize/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/rgrove/sanitize/issues/180/comments","events_url":"https://api.github.com/repos/rgrove/sanitize/issues/180/events","html_url":"https://github.com/rgrove/sanitize/pull/180","id":323753324,"number":180,"title":"Clean elements before cleaning styles","user":{"login":"rafbm","id":166943,"avatar_url":"https://avatars1.githubusercontent.com/u/166943?v=4","gravatar_id":"","url":"https://api.github.com/users/rafbm","html_url":"https://github.com/rafbm","followers_url":"https://api.github.com/users/rafbm/followers","following_url":"https://api.github.com/users/rafbm/following{/other_user}","gists_url":"https://api.github.com/users/rafbm/gists{/gist_id}","starred_url":"https://api.github.com/users/rafbm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafbm/subscriptions","organizations_url":"https://api.github.com/users/rafbm/orgs","repos_url":"https://api.github.com/users/rafbm/repos","events_url":"https://api.github.com/users/rafbm/events{/privacy}","received_events_url":"https://api.github.com/users/rafbm/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-16T19:22:22Z","updated_at":"2018-05-17T03:02:05Z","closed_at":"2018-05-17T03:01:54Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/rgrove/sanitize/pulls/180","html_url":"https://github.com/rgrove/sanitize/pull/180","diff_url":"https://github.com/rgrove/sanitize/pull/180.diff","patch_url":"https://github.com/rgrove/sanitize/pull/180.patch"},"body":"So CPU will no longer be wasted cleaning `style=\"\"` attributes on non-permitted elements, nor cleaning `<style>` contents if `<style>` elements are not permitted.\r\n\r\nI haven’t created a benchmark or sample script to prove the above claim, but looking at the code it seems pretty clear what’s happening. I made the change and all specs were still green, so I figured I would just submit this as-is."},"comment":{"url":"https://api.github.com/repos/rgrove/sanitize/issues/comments/389729669","html_url":"https://github.com/rgrove/sanitize/pull/180#issuecomment-389729669","issue_url":"https://api.github.com/repos/rgrove/sanitize/issues/180","id":389729669,"user":{"login":"rgrove","id":1465,"avatar_url":"https://avatars1.githubusercontent.com/u/1465?v=4","gravatar_id":"","url":"https://api.github.com/users/rgrove","html_url":"https://github.com/rgrove","followers_url":"https://api.github.com/users/rgrove/followers","following_url":"https://api.github.com/users/rgrove/following{/other_user}","gists_url":"https://api.github.com/users/rgrove/gists{/gist_id}","starred_url":"https://api.github.com/users/rgrove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgrove/subscriptions","organizations_url":"https://api.github.com/users/rgrove/orgs","repos_url":"https://api.github.com/users/rgrove/repos","events_url":"https://api.github.com/users/rgrove/events{/privacy}","received_events_url":"https://api.github.com/users/rgrove/received_events","type":"User","site_admin":false},"created_at":"2018-05-17T03:02:05Z","updated_at":"2018-05-17T03:02:05Z","author_association":"OWNER","body":"Thanks!"}}
{"actor":{"display_login":"rgrove"}}