{"action":"created","issue":{"url":"https://api.github.com/repos/Swaagie/minimize/issues/63","labels_url":"https://api.github.com/repos/Swaagie/minimize/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/Swaagie/minimize/issues/63/comments","events_url":"https://api.github.com/repos/Swaagie/minimize/issues/63/events","html_url":"https://github.com/Swaagie/minimize/issues/63","id":108756462,"number":63,"title":"TypeError: allowed.indexOf is not a function using IO.js v3.3.1","user":{"login":"zrecommerce","id":428908,"avatar_url":"https://avatars.githubusercontent.com/u/428908?v=3","gravatar_id":"","url":"https://api.github.com/users/zrecommerce","html_url":"https://github.com/zrecommerce","followers_url":"https://api.github.com/users/zrecommerce/followers","following_url":"https://api.github.com/users/zrecommerce/following{/other_user}","gists_url":"https://api.github.com/users/zrecommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/zrecommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zrecommerce/subscriptions","organizations_url":"https://api.github.com/users/zrecommerce/orgs","repos_url":"https://api.github.com/users/zrecommerce/repos","events_url":"https://api.github.com/users/zrecommerce/events{/privacy}","received_events_url":"https://api.github.com/users/zrecommerce/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-09-28T22:06:15Z","updated_at":"2015-10-14T21:19:07Z","closed_at":null,"body":"```\r\n/home/aalbino/Projects/xtal-commerce/node_modules/gulp-minify-html/node_modules/minimize/lib/helpers.js:132\r\n      ? allowed === '*' || ~allowed.indexOf(name)\r\n                                    ^\r\n\r\nTypeError: allowed.indexOf is not a function\r\n```\r\n\r\nLooks like this:\r\n```\r\n    //\r\n    // Is the attribute allowed on the HTML element? If so, allow special\r\n    // treatment. If not, then just return the full attribute and its value.\r\n    //\r\n    allowed = list.attributes[key];\r\n    allowed = allowed\r\n      ? allowed === '*' || ~allowed.indexOf(name)\r\n      : ~key.indexOf('data-');\r\n```\r\n\r\n...should in fact be:\r\n\r\n```\r\n    //\r\n    // Is the attribute allowed on the HTML element? If so, allow special\r\n    // treatment. If not, then just return the full attribute and its value.\r\n    //\r\n    allowed = String(list.attributes[key]); // <-- Should be a String to provide indexOf() method.\r\n    allowed = allowed\r\n      ? allowed === '*' || ~allowed.indexOf(name)\r\n      : ~key.indexOf('data-');\r\n```"},"comment":{"url":"https://api.github.com/repos/Swaagie/minimize/issues/comments/148204631","html_url":"https://github.com/Swaagie/minimize/issues/63#issuecomment-148204631","issue_url":"https://api.github.com/repos/Swaagie/minimize/issues/63","id":148204631,"user":{"login":"Swaagie","id":670951,"avatar_url":"https://avatars.githubusercontent.com/u/670951?v=3","gravatar_id":"","url":"https://api.github.com/users/Swaagie","html_url":"https://github.com/Swaagie","followers_url":"https://api.github.com/users/Swaagie/followers","following_url":"https://api.github.com/users/Swaagie/following{/other_user}","gists_url":"https://api.github.com/users/Swaagie/gists{/gist_id}","starred_url":"https://api.github.com/users/Swaagie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Swaagie/subscriptions","organizations_url":"https://api.github.com/users/Swaagie/orgs","repos_url":"https://api.github.com/users/Swaagie/repos","events_url":"https://api.github.com/users/Swaagie/events{/privacy}","received_events_url":"https://api.github.com/users/Swaagie/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T21:19:07Z","updated_at":"2015-10-14T21:19:07Z","body":"there we go I can replicate it now, I'll investigate it a bit"}}