{"action":"opened","issue":{"url":"https://api.github.com/repos/dequelabs/axe-core/issues/107","labels_url":"https://api.github.com/repos/dequelabs/axe-core/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/dequelabs/axe-core/issues/107/comments","events_url":"https://api.github.com/repos/dequelabs/axe-core/issues/107/events","html_url":"https://github.com/dequelabs/axe-core/issues/107","id":100692543,"number":107,"title":"PhantomJS/CasperJS isn't working with SVGSVGElement","user":{"login":"RussellUresti","id":114387,"avatar_url":"https://avatars.githubusercontent.com/u/114387?v=3","gravatar_id":"","url":"https://api.github.com/users/RussellUresti","html_url":"https://github.com/RussellUresti","followers_url":"https://api.github.com/users/RussellUresti/followers","following_url":"https://api.github.com/users/RussellUresti/following{/other_user}","gists_url":"https://api.github.com/users/RussellUresti/gists{/gist_id}","starred_url":"https://api.github.com/users/RussellUresti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RussellUresti/subscriptions","organizations_url":"https://api.github.com/users/RussellUresti/orgs","repos_url":"https://api.github.com/users/RussellUresti/repos","events_url":"https://api.github.com/users/RussellUresti/events{/privacy}","received_events_url":"https://api.github.com/users/RussellUresti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-13T05:23:33Z","updated_at":"2015-08-13T05:23:33Z","closed_at":null,"body":"I should start off by saying I'm not sure if this is an issue with the project or maybe just my environment.\r\n\r\nI'm using CasperJS 1.1 and PhantomJS 2.0.\r\n\r\nWhen running `a11yCheck` on my page through Casper, it dies on `Rule.prototype.run` when the `node` is an `SVGSVGElement` - specifically as it goes through `node: new DqElement(node)`.\r\n\r\nThe offending line was in `function DqElement`:\r\n\r\n```\r\nthis.source = truncate(spec.source || element.outerHTML);\r\n```\r\n\r\nWhile this seemed to work fine in my actual Chrome browser, when running through Casper both `spec.source` and `element.outerHTML` were returning `undefined`.\r\n\r\nI patched my local version with the following change:\r\n\r\n```\r\nthis.source = truncate(spec.source || element.outerHTML || new XMLSerializer().serializeToString(element));\r\n```\r\n\r\nAgain, not sure if this is an issue with Casper, Phantom, or just my local environment, but I thought I'd put it up here so you could look into it."}}