{"action":"created","issue":{"url":"https://api.github.com/repos/ariya/phantomjs/issues/11208","labels_url":"https://api.github.com/repos/ariya/phantomjs/issues/11208/labels{/name}","comments_url":"https://api.github.com/repos/ariya/phantomjs/issues/11208/comments","events_url":"https://api.github.com/repos/ariya/phantomjs/issues/11208/events","html_url":"https://github.com/ariya/phantomjs/issues/11208","id":12812085,"number":11208,"title":"catching the jQuery parseXML exception","user":{"login":"repinel","id":1685896,"avatar_url":"https://avatars.githubusercontent.com/u/1685896?v=3","gravatar_id":"","url":"https://api.github.com/users/repinel","html_url":"https://github.com/repinel","followers_url":"https://api.github.com/users/repinel/followers","following_url":"https://api.github.com/users/repinel/following{/other_user}","gists_url":"https://api.github.com/users/repinel/gists{/gist_id}","starred_url":"https://api.github.com/users/repinel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/repinel/subscriptions","organizations_url":"https://api.github.com/users/repinel/orgs","repos_url":"https://api.github.com/users/repinel/repos","events_url":"https://api.github.com/users/repinel/events{/privacy}","received_events_url":"https://api.github.com/users/repinel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ariya/phantomjs/labels/old.Module-WebPage","name":"old.Module-WebPage","color":"ededed"},{"url":"https://api.github.com/repos/ariya/phantomjs/labels/old.Priority-Medium","name":"old.Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/ariya/phantomjs/labels/old.Status-Accepted","name":"old.Status-Accepted","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2013-04-04T17:57:06Z","updated_at":"2015-07-03T15:26:34Z","closed_at":null,"body":"I'm not sure if it's an issue, but shouldn't the following code throw an exception and reach the catch block?\r\n\r\ntry {\r\n    jQuery.parseXML('foo');\r\n} catch(e) {\r\n    console.log(e.message);\r\n}"},"comment":{"url":"https://api.github.com/repos/ariya/phantomjs/issues/comments/118373238","html_url":"https://github.com/ariya/phantomjs/issues/11208#issuecomment-118373238","issue_url":"https://api.github.com/repos/ariya/phantomjs/issues/11208","id":118373238,"user":{"login":"LeMoussel","id":1816573,"avatar_url":"https://avatars.githubusercontent.com/u/1816573?v=3","gravatar_id":"","url":"https://api.github.com/users/LeMoussel","html_url":"https://github.com/LeMoussel","followers_url":"https://api.github.com/users/LeMoussel/followers","following_url":"https://api.github.com/users/LeMoussel/following{/other_user}","gists_url":"https://api.github.com/users/LeMoussel/gists{/gist_id}","starred_url":"https://api.github.com/users/LeMoussel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeMoussel/subscriptions","organizations_url":"https://api.github.com/users/LeMoussel/orgs","repos_url":"https://api.github.com/users/LeMoussel/repos","events_url":"https://api.github.com/users/LeMoussel/events{/privacy}","received_events_url":"https://api.github.com/users/LeMoussel/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T15:26:34Z","updated_at":"2015-07-03T15:26:34Z","body":"Code working properly\r\n\r\n- [x] What OS? What version? Windows 7\r\n- [x] What version of PhantomJS? PhantomJS 2.0.0\r\n- [x] What version of jQuery? jQuery 2.1.4\r\n- [x] What is the context of this script? An existing script\r\n\r\n**Result:**\r\n\r\n    Started\r\n    Loaded jQuery\r\n    Parsing XML\r\n    XML is valid? false`\r\n"}}