{"action":"created","issue":{"url":"https://api.github.com/repos/claudetech/node-static-i18n/issues/20","repository_url":"https://api.github.com/repos/claudetech/node-static-i18n","labels_url":"https://api.github.com/repos/claudetech/node-static-i18n/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/claudetech/node-static-i18n/issues/20/comments","events_url":"https://api.github.com/repos/claudetech/node-static-i18n/issues/20/events","html_url":"https://github.com/claudetech/node-static-i18n/issues/20","id":285328352,"number":20,"title":"Incorrect closing inline SVG elements after compilation with static-i18n","user":{"login":"sergey-pimenov","id":15109701,"avatar_url":"https://avatars2.githubusercontent.com/u/15109701?v=4","gravatar_id":"","url":"https://api.github.com/users/sergey-pimenov","html_url":"https://github.com/sergey-pimenov","followers_url":"https://api.github.com/users/sergey-pimenov/followers","following_url":"https://api.github.com/users/sergey-pimenov/following{/other_user}","gists_url":"https://api.github.com/users/sergey-pimenov/gists{/gist_id}","starred_url":"https://api.github.com/users/sergey-pimenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergey-pimenov/subscriptions","organizations_url":"https://api.github.com/users/sergey-pimenov/orgs","repos_url":"https://api.github.com/users/sergey-pimenov/repos","events_url":"https://api.github.com/users/sergey-pimenov/events{/privacy}","received_events_url":"https://api.github.com/users/sergey-pimenov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-01-01T20:52:56Z","updated_at":"2018-05-08T21:09:08Z","closed_at":null,"author_association":"NONE","body":"Hi! This tool awesome, but I found strange bug: SVG elements like path lose closing '/' after compilation.\r\nThis problem also exist in gulp plugin.\r\n\r\nExample.\r\n\r\nThis code:\r\n\r\n```html\r\n<!-- i18n -->\r\n<h1 data-t=\"my.key\"></h1>\r\n<p data-t>other.key</p>\r\n<input type=\"submit\" data-attr-t value-t=\"other.ok\">\r\n\r\n<!-- Some inline SVG -->\r\n<svg width=\"200\" height=\"200\">\r\n      <path d=\"M10 10\"/>\r\n      <circle cx=\"10\" cy=\"10\" r=\"2\" fill=\"red\"/>\r\n      <ellipse cx=\"60\" cy=\"60\" rx=\"50\" ry=\"25\"/>\r\n</svg>\r\n```\r\n\r\nWill compiled to:\r\n\r\n```html\r\n<!-- i18n -->\r\n<h1>Salut</h1>\r\n<p>mec</p>\r\n<input type=\"submit\" value=\"confirmer\">\r\n\r\n<!-- Some inline SVG -->\r\n<svg width=\"200\" height=\"200\">\r\n      <path d=\"M10 10\">\r\n      <circle cx=\"10\" cy=\"10\" r=\"2\" fill=\"red\">\r\n       <ellipse cx=\"60\" cy=\"60\" rx=\"50\" ry=\"25\">\r\n</svg>\r\n```\r\n\r\n**[Link to example](https://drive.google.com/file/d/1cBmx05K16Wt__tEEgvJF3_tW5BV0GceA/view)**\r\n\r\nIt's not valid HTML and so it can cause some errors in browsers. It would be great if it's fixed.\r\n"},"comment":{"url":"https://api.github.com/repos/claudetech/node-static-i18n/issues/comments/387543126","html_url":"https://github.com/claudetech/node-static-i18n/issues/20#issuecomment-387543126","issue_url":"https://api.github.com/repos/claudetech/node-static-i18n/issues/20","id":387543126,"user":{"login":"osdiab","id":1890926,"avatar_url":"https://avatars0.githubusercontent.com/u/1890926?v=4","gravatar_id":"","url":"https://api.github.com/users/osdiab","html_url":"https://github.com/osdiab","followers_url":"https://api.github.com/users/osdiab/followers","following_url":"https://api.github.com/users/osdiab/following{/other_user}","gists_url":"https://api.github.com/users/osdiab/gists{/gist_id}","starred_url":"https://api.github.com/users/osdiab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osdiab/subscriptions","organizations_url":"https://api.github.com/users/osdiab/orgs","repos_url":"https://api.github.com/users/osdiab/repos","events_url":"https://api.github.com/users/osdiab/events{/privacy}","received_events_url":"https://api.github.com/users/osdiab/received_events","type":"User","site_admin":false},"created_at":"2018-05-08T21:09:08Z","updated_at":"2018-05-08T21:09:08Z","author_association":"NONE","body":"While `--xml` does fix the SVG tags, it also causes script tags to be self closing, which doesn't work and therefore causes my site to not render properly. Any thoughts?"}}
{"actor":{"display_login":"osdiab"}}