{"action":"created","issue":{"url":"https://api.github.com/repos/trueadm/inferno/issues/31","labels_url":"https://api.github.com/repos/trueadm/inferno/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/trueadm/inferno/issues/31/comments","events_url":"https://api.github.com/repos/trueadm/inferno/issues/31/events","html_url":"https://github.com/trueadm/inferno/issues/31","id":123490077,"number":31,"title":"Babel plugin / Inferno fails with rendering SVG","user":{"login":"Havunen","id":2021355,"avatar_url":"https://avatars.githubusercontent.com/u/2021355?v=3","gravatar_id":"","url":"https://api.github.com/users/Havunen","html_url":"https://github.com/Havunen","followers_url":"https://api.github.com/users/Havunen/followers","following_url":"https://api.github.com/users/Havunen/following{/other_user}","gists_url":"https://api.github.com/users/Havunen/gists{/gist_id}","starred_url":"https://api.github.com/users/Havunen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Havunen/subscriptions","organizations_url":"https://api.github.com/users/Havunen/orgs","repos_url":"https://api.github.com/users/Havunen/repos","events_url":"https://api.github.com/users/Havunen/events{/privacy}","received_events_url":"https://api.github.com/users/Havunen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-22T14:27:06Z","updated_at":"2015-12-22T14:35:32Z","closed_at":null,"body":"Inferno babel plugin 0.2.5 or Inferno 0.4.0  is failing when there is component with SVG inside.\r\n\r\n```javascript\r\nclass Component extends Inferno.Component {\r\n        constructor(props) {\r\n            super(props);\r\n         }\r\n         render() {\r\n            return (\r\n               <svg class=\"alert-icon\">\r\n                    <use xlink:href=\"#error\"></use> // This should link to inline svg with ID error\r\n                </svg>\r\n            )\r\n         }\r\n}\r\n\r\n Inferno.render(<Component />, APP_ELEMENT);\r\n```\r\n\r\nException is thrown:\r\n<pre>\r\n ModuleParseError: Module parse failed: ****\\node_modules\\babel-loader\\index.js?{\"presets\":[\"es2015\"],\"plugins\":[\"babel-plugin-syntax-jsx\",\"babel-pl\r\nYou may need an appropriate loader to handle this file type.\r\n|             tag: 'use',\r\n|             attrs: {\r\n|                 [object Object]: '#error'\r\n|             }\r\n|         }, '            ']\r\n\r\n</pre>\r\n\r\nExpected result:\r\nIt should render SVG element with use element refering to error id. \r\n\r\nReact has solved it this way: http://stackoverflow.com/questions/26815738/svg-use-tag-and-reactjs\r\n\r\nHavunen"},"comment":{"url":"https://api.github.com/repos/trueadm/inferno/issues/comments/166630528","html_url":"https://github.com/trueadm/inferno/issues/31#issuecomment-166630528","issue_url":"https://api.github.com/repos/trueadm/inferno/issues/31","id":166630528,"user":{"login":"trueadm","id":1519870,"avatar_url":"https://avatars.githubusercontent.com/u/1519870?v=3","gravatar_id":"","url":"https://api.github.com/users/trueadm","html_url":"https://github.com/trueadm","followers_url":"https://api.github.com/users/trueadm/followers","following_url":"https://api.github.com/users/trueadm/following{/other_user}","gists_url":"https://api.github.com/users/trueadm/gists{/gist_id}","starred_url":"https://api.github.com/users/trueadm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trueadm/subscriptions","organizations_url":"https://api.github.com/users/trueadm/orgs","repos_url":"https://api.github.com/users/trueadm/repos","events_url":"https://api.github.com/users/trueadm/events{/privacy}","received_events_url":"https://api.github.com/users/trueadm/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T14:35:32Z","updated_at":"2015-12-22T14:35:32Z","body":"Ah, so the issues is this:\r\n\r\n`Namespace tags are not supported. JSX is not XML.`\r\n\r\nSo Bable does not support namespaced tags."}}