{"action":"created","comment":{"url":"https://api.github.com/repos/jjriv/emogrifier/pulls/comments/34123088","id":34123088,"diff_hunk":"@@ -1108,7 +1108,7 @@ public function emogrifyWithValidMediaQueryContainsInnerCss($css)\n     public function emogrifyForHtmlWithValidMediaQueryContainsInnerCss($css)\n     {\n         $html = $this->html5DocumentType . PHP_EOL . '<html><style type=\"text/css\">' . $css\n-            . '</style><h1></h1></html>';\n+            . '</style><h1></h1><p></p></html>';","path":"Tests/Unit/EmogrifierTest.php","position":23,"original_position":23,"commit_id":"503568fe1c9c9bd39e607e94001735b61e5255c9","original_commit_id":"503568fe1c9c9bd39e607e94001735b61e5255c9","user":{"login":"Sam152","id":820219,"avatar_url":"https://avatars.githubusercontent.com/u/820219?v=3","gravatar_id":"","url":"https://api.github.com/users/Sam152","html_url":"https://github.com/Sam152","followers_url":"https://api.github.com/users/Sam152/followers","following_url":"https://api.github.com/users/Sam152/following{/other_user}","gists_url":"https://api.github.com/users/Sam152/gists{/gist_id}","starred_url":"https://api.github.com/users/Sam152/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sam152/subscriptions","organizations_url":"https://api.github.com/users/Sam152/orgs","repos_url":"https://api.github.com/users/Sam152/repos","events_url":"https://api.github.com/users/Sam152/events{/privacy}","received_events_url":"https://api.github.com/users/Sam152/received_events","type":"User","site_admin":false},"body":"Because the new behavior removes the media query CSS if it doesn't match any selectors. We need a <p></p> so the media queries stay in the document.","created_at":"2015-07-08T07:49:26Z","updated_at":"2015-07-08T07:49:26Z","html_url":"https://github.com/jjriv/emogrifier/pull/203#discussion_r34123088","pull_request_url":"https://api.github.com/repos/jjriv/emogrifier/pulls/203","_links":{"self":{"href":"https://api.github.com/repos/jjriv/emogrifier/pulls/comments/34123088"},"html":{"href":"https://github.com/jjriv/emogrifier/pull/203#discussion_r34123088"},"pull_request":{"href":"https://api.github.com/repos/jjriv/emogrifier/pulls/203"}}},"pull_request":{"url":"https://api.github.com/repos/jjriv/emogrifier/pulls/203","id":39368635,"html_url":"https://github.com/jjriv/emogrifier/pull/203","diff_url":"https://github.com/jjriv/emogrifier/pull/203.diff","patch_url":"https://github.com/jjriv/emogrifier/pull/203.patch","issue_url":"https://api.github.com/repos/jjriv/emogrifier/issues/203","number":203,"state":"open","locked":false,"title":"Only essential media queries","user":{"login":"Sam152","id":820219,"avatar_url":"https://avatars.githubusercontent.com/u/820219?v=3","gravatar_id":"","url":"https://api.github.com/users/Sam152","html_url":"https://github.com/Sam152","followers_url":"https://api.github.com/users/Sam152/followers","following_url":"https://api.github.com/users/Sam152/following{/other_user}","gists_url":"https://api.github.com/users/Sam152/gists{/gist_id}","starred_url":"https://api.github.com/users/Sam152/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sam152/subscriptions","organizations_url":"https://api.github.com/users/Sam152/orgs","repos_url":"https://api.github.com/users/Sam152/repos","events_url":"https://api.github.com/users/Sam152/events{/privacy}","received_events_url":"https://api.github.com/users/Sam152/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-07T13:18:15Z","updated_at":"2015-07-08T07:49:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42c82a8ffd5b4d674507881f3ea543089d60a2a3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jjriv/emogrifier/pulls/203/commits","review_comments_url":"https://api.github.com/repos/jjriv/emogrifier/pulls/203/comments","review_comment_url":"https://api.github.com/repos/jjriv/emogrifier/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jjriv/emogrifier/issues/203/comments","statuses_url":"https://api.github.com/repos/jjriv/emogrifier/statuses/503568fe1c9c9bd39e607e94001735b61e5255c9","head":{"label":"Sam152:only-essential-media-queries","ref":"only-essential-media-queries","sha":"503568fe1c9c9bd39e607e94001735b61e5255c9","user":{"login":"Sam152","id":820219,"avatar_url":"https://avatars.githubusercontent.com/u/820219?v=3","gravatar_id":"","url":"https://api.github.com/users/Sam152","html_url":"https://github.com/Sam152","followers_url":"https://api.github.com/users/Sam152/followers","following_url":"https://api.github.com/users/Sam152/following{/other_user}","gists_url":"https://api.github.com/users/Sam152/gists{/gist_id}","starred_url":"https://api.github.com/users/Sam152/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sam152/subscriptions","organizations_url":"https://api.github.com/users/Sam152/orgs","repos_url":"https://api.github.com/users/Sam152/repos","events_url":"https://api.github.com/users/Sam152/events{/privacy}","received_events_url":"https://api.github.com/users/Sam152/received_events","type":"User","site_admin":false},"repo":{"id":38682843,"name":"emogrifier","full_name":"Sam152/emogrifier","owner":{"login":"Sam152","id":820219,"avatar_url":"https://avatars.githubusercontent.com/u/820219?v=3","gravatar_id":"","url":"https://api.github.com/users/Sam152","html_url":"https://github.com/Sam152","followers_url":"https://api.github.com/users/Sam152/followers","following_url":"https://api.github.com/users/Sam152/following{/other_user}","gists_url":"https://api.github.com/users/Sam152/gists{/gist_id}","starred_url":"https://api.github.com/users/Sam152/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sam152/subscriptions","organizations_url":"https://api.github.com/users/Sam152/orgs","repos_url":"https://api.github.com/users/Sam152/repos","events_url":"https://api.github.com/users/Sam152/events{/privacy}","received_events_url":"https://api.github.com/users/Sam152/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Sam152/emogrifier","description":"Converts CSS styles into inline style attributes in your HTML code.","fork":true,"url":"https://api.github.com/repos/Sam152/emogrifier","forks_url":"https://api.github.com/repos/Sam152/emogrifier/forks","keys_url":"https://api.github.com/repos/Sam152/emogrifier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sam152/emogrifier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sam152/emogrifier/teams","hooks_url":"https://api.github.com/repos/Sam152/emogrifier/hooks","issue_events_url":"https://api.github.com/repos/Sam152/emogrifier/issues/events{/number}","events_url":"https://api.github.com/repos/Sam152/emogrifier/events","assignees_url":"https://api.github.com/repos/Sam152/emogrifier/assignees{/user}","branches_url":"https://api.github.com/repos/Sam152/emogrifier/branches{/branch}","tags_url":"https://api.github.com/repos/Sam152/emogrifier/tags","blobs_url":"https://api.github.com/repos/Sam152/emogrifier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sam152/emogrifier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sam152/emogrifier/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sam152/emogrifier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sam152/emogrifier/statuses/{sha}","languages_url":"https://api.github.com/repos/Sam152/emogrifier/languages","stargazers_url":"https://api.github.com/repos/Sam152/emogrifier/stargazers","contributors_url":"https://api.github.com/repos/Sam152/emogrifier/contributors","subscribers_url":"https://api.github.com/repos/Sam152/emogrifier/subscribers","subscription_url":"https://api.github.com/repos/Sam152/emogrifier/subscription","commits_url":"https://api.github.com/repos/Sam152/emogrifier/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sam152/emogrifier/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sam152/emogrifier/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sam152/emogrifier/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sam152/emogrifier/contents/{+path}","compare_url":"https://api.github.com/repos/Sam152/emogrifier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sam152/emogrifier/merges","archive_url":"https://api.github.com/repos/Sam152/emogrifier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sam152/emogrifier/downloads","issues_url":"https://api.github.com/repos/Sam152/emogrifier/issues{/number}","pulls_url":"https://api.github.com/repos/Sam152/emogrifier/pulls{/number}","milestones_url":"https://api.github.com/repos/Sam152/emogrifier/milestones{/number}","notifications_url":"https://api.github.com/repos/Sam152/emogrifier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sam152/emogrifier/labels{/name}","releases_url":"https://api.github.com/repos/Sam152/emogrifier/releases{/id}","created_at":"2015-07-07T11:16:34Z","updated_at":"2015-07-07T11:16:35Z","pushed_at":"2015-07-07T13:43:38Z","git_url":"git://github.com/Sam152/emogrifier.git","ssh_url":"git@github.com:Sam152/emogrifier.git","clone_url":"https://github.com/Sam152/emogrifier.git","svn_url":"https://github.com/Sam152/emogrifier","homepage":null,"size":1256,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"jjriv:master","ref":"master","sha":"559db7c6b02d8d7ffa2d829966db68dd7e5ea4cc","user":{"login":"jjriv","id":4063419,"avatar_url":"https://avatars.githubusercontent.com/u/4063419?v=3","gravatar_id":"","url":"https://api.github.com/users/jjriv","html_url":"https://github.com/jjriv","followers_url":"https://api.github.com/users/jjriv/followers","following_url":"https://api.github.com/users/jjriv/following{/other_user}","gists_url":"https://api.github.com/users/jjriv/gists{/gist_id}","starred_url":"https://api.github.com/users/jjriv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjriv/subscriptions","organizations_url":"https://api.github.com/users/jjriv/orgs","repos_url":"https://api.github.com/users/jjriv/repos","events_url":"https://api.github.com/users/jjriv/events{/privacy}","received_events_url":"https://api.github.com/users/jjriv/received_events","type":"User","site_admin":false},"repo":{"id":14871640,"name":"emogrifier","full_name":"jjriv/emogrifier","owner":{"login":"jjriv","id":4063419,"avatar_url":"https://avatars.githubusercontent.com/u/4063419?v=3","gravatar_id":"","url":"https://api.github.com/users/jjriv","html_url":"https://github.com/jjriv","followers_url":"https://api.github.com/users/jjriv/followers","following_url":"https://api.github.com/users/jjriv/following{/other_user}","gists_url":"https://api.github.com/users/jjriv/gists{/gist_id}","starred_url":"https://api.github.com/users/jjriv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjriv/subscriptions","organizations_url":"https://api.github.com/users/jjriv/orgs","repos_url":"https://api.github.com/users/jjriv/repos","events_url":"https://api.github.com/users/jjriv/events{/privacy}","received_events_url":"https://api.github.com/users/jjriv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jjriv/emogrifier","description":"Converts CSS styles into inline style attributes in your HTML code.","fork":false,"url":"https://api.github.com/repos/jjriv/emogrifier","forks_url":"https://api.github.com/repos/jjriv/emogrifier/forks","keys_url":"https://api.github.com/repos/jjriv/emogrifier/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jjriv/emogrifier/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jjriv/emogrifier/teams","hooks_url":"https://api.github.com/repos/jjriv/emogrifier/hooks","issue_events_url":"https://api.github.com/repos/jjriv/emogrifier/issues/events{/number}","events_url":"https://api.github.com/repos/jjriv/emogrifier/events","assignees_url":"https://api.github.com/repos/jjriv/emogrifier/assignees{/user}","branches_url":"https://api.github.com/repos/jjriv/emogrifier/branches{/branch}","tags_url":"https://api.github.com/repos/jjriv/emogrifier/tags","blobs_url":"https://api.github.com/repos/jjriv/emogrifier/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jjriv/emogrifier/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jjriv/emogrifier/git/refs{/sha}","trees_url":"https://api.github.com/repos/jjriv/emogrifier/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jjriv/emogrifier/statuses/{sha}","languages_url":"https://api.github.com/repos/jjriv/emogrifier/languages","stargazers_url":"https://api.github.com/repos/jjriv/emogrifier/stargazers","contributors_url":"https://api.github.com/repos/jjriv/emogrifier/contributors","subscribers_url":"https://api.github.com/repos/jjriv/emogrifier/subscribers","subscription_url":"https://api.github.com/repos/jjriv/emogrifier/subscription","commits_url":"https://api.github.com/repos/jjriv/emogrifier/commits{/sha}","git_commits_url":"https://api.github.com/repos/jjriv/emogrifier/git/commits{/sha}","comments_url":"https://api.github.com/repos/jjriv/emogrifier/comments{/number}","issue_comment_url":"https://api.github.com/repos/jjriv/emogrifier/issues/comments{/number}","contents_url":"https://api.github.com/repos/jjriv/emogrifier/contents/{+path}","compare_url":"https://api.github.com/repos/jjriv/emogrifier/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jjriv/emogrifier/merges","archive_url":"https://api.github.com/repos/jjriv/emogrifier/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jjriv/emogrifier/downloads","issues_url":"https://api.github.com/repos/jjriv/emogrifier/issues{/number}","pulls_url":"https://api.github.com/repos/jjriv/emogrifier/pulls{/number}","milestones_url":"https://api.github.com/repos/jjriv/emogrifier/milestones{/number}","notifications_url":"https://api.github.com/repos/jjriv/emogrifier/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jjriv/emogrifier/labels{/name}","releases_url":"https://api.github.com/repos/jjriv/emogrifier/releases{/id}","created_at":"2013-12-02T18:58:48Z","updated_at":"2015-07-07T11:49:07Z","pushed_at":"2015-07-07T13:43:38Z","git_url":"git://github.com/jjriv/emogrifier.git","ssh_url":"git@github.com:jjriv/emogrifier.git","clone_url":"https://github.com/jjriv/emogrifier.git","svn_url":"https://github.com/jjriv/emogrifier","homepage":null,"size":1256,"stargazers_count":153,"watchers_count":153,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":32,"forks":44,"open_issues":32,"watchers":153,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jjriv/emogrifier/pulls/203"},"html":{"href":"https://github.com/jjriv/emogrifier/pull/203"},"issue":{"href":"https://api.github.com/repos/jjriv/emogrifier/issues/203"},"comments":{"href":"https://api.github.com/repos/jjriv/emogrifier/issues/203/comments"},"review_comments":{"href":"https://api.github.com/repos/jjriv/emogrifier/pulls/203/comments"},"review_comment":{"href":"https://api.github.com/repos/jjriv/emogrifier/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jjriv/emogrifier/pulls/203/commits"},"statuses":{"href":"https://api.github.com/repos/jjriv/emogrifier/statuses/503568fe1c9c9bd39e607e94001735b61e5255c9"}}}}