{"action":"opened","issue":{"url":"https://api.github.com/repos/mpdf/mpdf/issues/76","labels_url":"https://api.github.com/repos/mpdf/mpdf/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/mpdf/mpdf/issues/76/comments","events_url":"https://api.github.com/repos/mpdf/mpdf/issues/76/events","html_url":"https://github.com/mpdf/mpdf/issues/76","id":121007340,"number":76,"title":"body classes are removed/ignored","user":{"login":"akamustang","id":1636013,"avatar_url":"https://avatars.githubusercontent.com/u/1636013?v=3","gravatar_id":"","url":"https://api.github.com/users/akamustang","html_url":"https://github.com/akamustang","followers_url":"https://api.github.com/users/akamustang/followers","following_url":"https://api.github.com/users/akamustang/following{/other_user}","gists_url":"https://api.github.com/users/akamustang/gists{/gist_id}","starred_url":"https://api.github.com/users/akamustang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akamustang/subscriptions","organizations_url":"https://api.github.com/users/akamustang/orgs","repos_url":"https://api.github.com/users/akamustang/repos","events_url":"https://api.github.com/users/akamustang/events{/privacy}","received_events_url":"https://api.github.com/users/akamustang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-08T13:36:15Z","updated_at":"2015-12-08T13:36:15Z","closed_at":null,"body":"My css fails because body classes are getting removed, here is a demo/bodge of the affected area.\r\n\r\n**mpdf.php**\r\n```php\r\n  if (preg_match('/<body([^>]*)>(.*?)<\\/body>/ism',$html,$m) || preg_match('/<body([^>]*)>(.*)$/ism',$html,$m)) { \r\n-   $html = $m[2];\r\n+   $html = '<div ' . $m[1] . '>' . $m[2] . '</div>';\r\n  }\r\n```"}}