{"action":"closed","issue":{"url":"https://api.github.com/repos/andrewrk/swig-email-templates/issues/25","labels_url":"https://api.github.com/repos/andrewrk/swig-email-templates/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/andrewrk/swig-email-templates/issues/25/comments","events_url":"https://api.github.com/repos/andrewrk/swig-email-templates/issues/25/events","html_url":"https://github.com/andrewrk/swig-email-templates/issues/25","id":64111351,"number":25,"title":"Breaks on node/iojs > v0.11.13, TypeError: Cannot read property 'removeChild' of nul","user":{"login":"naartjie","id":514563,"avatar_url":"https://avatars.githubusercontent.com/u/514563?v=3","gravatar_id":"","url":"https://api.github.com/users/naartjie","html_url":"https://github.com/naartjie","followers_url":"https://api.github.com/users/naartjie/followers","following_url":"https://api.github.com/users/naartjie/following{/other_user}","gists_url":"https://api.github.com/users/naartjie/gists{/gist_id}","starred_url":"https://api.github.com/users/naartjie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naartjie/subscriptions","organizations_url":"https://api.github.com/users/naartjie/orgs","repos_url":"https://api.github.com/users/naartjie/repos","events_url":"https://api.github.com/users/naartjie/events{/privacy}","received_events_url":"https://api.github.com/users/naartjie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-24T22:05:53Z","updated_at":"2015-10-16T09:44:24Z","closed_at":"2015-10-16T09:44:24Z","body":"I'm getting a `TypeError: Cannot read property 'removeChild' of null`, for something which used to work on `node v0.11.13`, and is broken on any node or iojs version after that:\r\n\r\n```shell\r\nTypeError: Cannot read property 'removeChild' of null\r\n  at removeStyleTags (server/node_modules/swig-email-templates/node_modules/juice2/lib/juice.js:272:32)\r\n  at getStylesData (server/node_modules/swig-email-templates/node_modules/juice2/lib/juice.js:294:3)\r\n  at /Users/marchi/Project/Swarm/loyalty-server/node_modules/swig-email-templates/node_modules/juice2/lib/juice.js:356:5\r\n```\r\n\r\nThis looks related to andrewrk/juice#16."}}