{"action":"created","issue":{"url":"https://api.github.com/repos/RazrFalcon/svgcleaner/issues/179","repository_url":"https://api.github.com/repos/RazrFalcon/svgcleaner","labels_url":"https://api.github.com/repos/RazrFalcon/svgcleaner/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/RazrFalcon/svgcleaner/issues/179/comments","events_url":"https://api.github.com/repos/RazrFalcon/svgcleaner/issues/179/events","html_url":"https://github.com/RazrFalcon/svgcleaner/issues/179","id":374551034,"node_id":"MDU6SXNzdWUzNzQ1NTEwMzQ=","number":179,"title":"[Improvement] --remove-version does not apply to child-svg-tags","user":{"login":"JoKalliauer","id":15687581,"node_id":"MDQ6VXNlcjE1Njg3NTgx","avatar_url":"https://avatars1.githubusercontent.com/u/15687581?v=4","gravatar_id":"","url":"https://api.github.com/users/JoKalliauer","html_url":"https://github.com/JoKalliauer","followers_url":"https://api.github.com/users/JoKalliauer/followers","following_url":"https://api.github.com/users/JoKalliauer/following{/other_user}","gists_url":"https://api.github.com/users/JoKalliauer/gists{/gist_id}","starred_url":"https://api.github.com/users/JoKalliauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoKalliauer/subscriptions","organizations_url":"https://api.github.com/users/JoKalliauer/orgs","repos_url":"https://api.github.com/users/JoKalliauer/repos","events_url":"https://api.github.com/users/JoKalliauer/events{/privacy}","received_events_url":"https://api.github.com/users/JoKalliauer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-26T21:19:02Z","updated_at":"2018-10-27T08:39:24Z","closed_at":null,"author_association":"NONE","body":"Prozessing [File:Wikimedia_movement_DE_EN.svg](https://commons.wikimedia.org/wiki/File:Wikimedia_movement_DE_EN.svg) keeps the version in child-Svgs:\r\n\r\nsvgcleaner [Input.svg.txt](https://github.com/RazrFalcon/svgcleaner/files/2520873/Input.svg.txt) [Output.svg.txt](https://github.com/RazrFalcon/svgcleaner/files/2520874/Output.svg.txt)  --indent=1\r\n\r\n# Input\r\n[Input.svg.txt](https://github.com/RazrFalcon/svgcleaner/files/2520873/Input.svg.txt)\r\n```svg\r\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<svg viewBox=\"0,0,1588,1122.7\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n <path d=\"M 1353.6 509.38 h -166.13 V 372.05 h 332.12 v 137.33 z\" fill=\"#23ff23\" fill-rule=\"evenodd\"/>\r\n <g transform=\"matrix(.57 0 0 .57 78 324)\">\r\n <svg height=\"155\" width=\"135\">\r\n  <path d=\"M 39.563 37.373 c -.007 .008 -.013 .018 -.021 .025 c .008 -.007 .014 -.017 .021 -.025 z\" fill=\"none\"/>\r\n </svg>\r\n </g><g transform=\"matrix(.04903 0 0 .04903 322.69 615.76)\">\r\n <svg height=\"590\" stroke-width=\"30.2\" width=\"1050\">\r\n  <path d=\"M 135 45 v 500 m 60 0 V 45 m 30 0 v 500 m 30 0 V 45 m 60 0 v 500 m 30 0 V 45 m 30 0 v 500\" stroke=\"#990000\"/>\r\n </svg>\r\n</g><g transform=\"matrix(.1653 0 0 .1653 328.97 486.77)\">\r\n <svg height=\"192.5\" width=\"192.5\">\r\n  <path d=\"M 91.48 116.7 l 47.916 72.571 l 5.21 -86.806 c -13.89 13.89 -34.15 19.32 -53.126 14.235 z\" fill=\"#339966\"/>\r\n </svg>\r\n</g><g transform=\"matrix(.115 0 0 .115 91.5 412)\">\r\n <svg height=\"350\" version=\"1.0\" width=\"370\">\r\n  <g stroke=\"#000000\">\r\n   <g fill=\"#e7c78d\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.08\" transform=\"matrix(1 0 0 1 -135.76 -58.89)\">\r\n    <rect height=\"89.53\" rx=\"9.16\" ry=\"12.28\" transform=\"matrix(.9937 -.11215 .12121 .99263 0 0)\" width=\"89.88\" x=\"157.9\" y=\"113.38\"/>\r\n   </g>\r\n  </g>\r\n </svg>\r\n </g><g transform=\"matrix(.05582 0 0 .05582 86.27 577.37)\">\r\n <svg height=\"900\" stroke-width=\"2\" version=\"1.0\" width=\"900\">\r\n  <path d=\"M 450 -.006 c -153.56 0 -289.2 77.04 -370.44 194.56 l 87 50.25 c 63.62 -87.7 166.88 -144.82 283.44 -144.81 c 116.56 0 219.8 57.1 283.44 144.81 l 87 -50.25 C 739.22 77.034 603.64 -.006 450 -.006 z\" fill=\"#990000\"/>\r\n </svg>\r\n </g><g transform=\"matrix(.034 0 0 .034 97 481)\">\r\n <svg height=\"1103\" width=\"941\">\r\n  <circle cx=\"470.5\" cy=\"628\" fill=\"none\" r=\"388.5\" stroke-width=\"100\"/>\r\n  <circle cx=\"470.5\" cy=\"161\" fill=\"none\" r=\"125\" stroke=\"#555555\"/>\r\n </svg>\r\n </g><g transform=\"matrix(.075 0 0 .075 168 485)\">\r\n <svg height=\"415\" width=\"758.63\">\r\n  <path d=\"M 36 136 c -26.26 32.75 -25.57 111.4 1 144 h 21 c -20.8 -38.13 -23.5 -102.2 0 -144 z m 698 0 c 23.5 41.84 20.8 105.9 0 144 h 21 c 26.57 -32.59 27.26 -111.2 1 -144 z\" fill=\"none\" transform=\"matrix(1 0 0 1 -16.68 0)\"/>\r\n </svg>\r\n </g><g transform=\"matrix(.12234 0 0 .12061 175.82 414.77)\">\r\n <svg height=\"300\" version=\"1.0\" width=\"300\">\r\n  <g fill-rule=\"evenodd\">\r\n   <path d=\"M 141.66 103.54 c 5.277 66.03 16.8 129.9 51.198 191.49 l 13.01 .097 l 82.291 -73.419 l -78.435 -198.2 l -56.54 54.008 z\" fill=\"#fdfcf8\"/>\r\n  </g>\r\n </svg>\r\n </g><g transform=\"matrix(.0256 0 0 .0256 258.69 608.91)\">\r\n <svg height=\"1376\" viewBox=\"-305,-516,610,820\" width=\"1024\">\r\n  <circle fill=\"#990000\" r=\"100\"/>\r\n </svg>\r\n </g><g transform=\"matrix(.10569 0 0 .10569 259.24 414.19)\">\r\n <svg height=\"355\" viewBox=\"-64.5,-177.5,300,355\" width=\"300\">\r\n  <circle fill=\"none\" r=\"59.1\"/>\r\n </svg>\r\n </g><g transform=\"matrix(.08738 0 0 .08693 330.89 414.93)\">\r\n <svg height=\"513\" width=\"410\">\r\n  <path d=\"M 203.5 .2 c -67.9 .5 -128 36 -164.7 90.2 h 332 C 333.8 35.8 273.2 .2 204.8 .2 z\" fill=\"#608ab4\"/>\r\n </svg>\r\n </g><g transform=\"matrix(.063 0 0 .063 254.63 483.66)\">\r\n <svg height=\"511.99\" viewBox=\"-400,-525,821.98,671.99\" width=\"626.27\">\r\n  <path d=\"M 11.012 -492.18 c -8.836 1.558 -18.191 8.057 -27.326 20.323 c -7.773 10.44 -15.173 24.754 -21.718 42.231 h 97.615 c -6.627 -17.614 -14.083 -32.038 -21.847 -42.513 c -9.076 -12.235 -18.283 -18.611 -26.724 -20.042 z m 30.5 2.789 c 2.565 2.716 5.051 5.692 7.45 8.926 c 9.622 12.973 18.139 30.174 25.491 50.838 h 67.62 c -27.917 -31.001 -62.554 -52.277 -100.56 -59.765 z m -61.37 .067 c -37.892 7.547 -72.411 28.783 -100.24 59.698 h 67.186 c 7.271 -20.528 15.75 -37.629 25.389 -50.58 c 2.462 -3.308 5.022 -6.349 7.668 -9.118 z m -50.265 2.972 a 262.5 262.5 0 0 0 -96.6 56.728 h 28.175 c 19.504 -24.058 42.683 -43.444 68.425 -56.728 z m 163.18 .492 c 25.358 13.256 48.195 32.471 67.457 56.235 h 28.288 a 262.5 262.5 0 0 0 -95.746 -56.235 z m -273.98 70.214 a 262.5 262.5 0 0 0 -49.452 76.294 h 43.504 c 9.169 -28.114 21.998 -53.865 37.772 -76.294 h -31.826 z m 49.198 0 c -16.839 21.919 -30.621 47.723 -40.437 76.294 h 98.36 c 3.931 -28.324 9.482 -53.983 16.309 -76.294 h -74.234 z m 88.876 0 c -6.984 21.84 -12.718 47.591 -16.796 76.294 h 141.09 c -4.159 -28.678 -9.984 -54.429 -17.022 -76.294 z m 121.93 0 c 6.88 22.313 12.515 47.985 16.524 76.294 h 98.529 c -9.815 -28.573 -23.599 -54.377 -40.437 -76.294 H 79.079 z m 91.991 0 c 15.776 22.431 28.599 48.195 37.77 76.294 h 43.794 a 262.5 262.5 0 0 0 -49.893 -76.294 h -31.672 z m -406.94 90.272 a 262.5 262.5 0 0 0 -15.642 88.51 h 48.624 c 0 -30.949 4.163 -60.743 11.818 -88.51 z m 59.296 0 c -7.964 27.536 -12.335 57.33 -12.335 88.51 h 108.37 c 0 -31.29 1.748 -60.992 4.96 -88.51 z m 115.09 0 c -3.271 27.379 -5.07 57.146 -5.07 88.51 h 155.08 c 0 -31.343 -1.855 -61.11 -5.201 -88.51 h -144.82 z m 158.9 0 c 3.287 27.536 5.094 57.251 5.094 88.51 h 108.37 c 0 -31.185 -4.372 -60.979 -12.335 -88.51 z m 115.63 0 c 7.655 27.773 11.818 57.553 11.818 88.51 h 48.627 a 262.5 262.5 0 0 0 -15.717 -88.51 z m -586.79 102.49 v 25.484 h 769.48 v -25.484 z m 26.306 39.459 v 264.72 h 102.76 v -264.72 z m 204.7 0 v 264.72 h 102.76 v -264.72 z m 204.7 0 v 264.72 h 102.76 v -264.72 z m 204.7 0 v 264.72 h 102.76 v -264.72 z m -640.41 278.68 v 25.484 h 769.48 V 95.255 z\" fill=\"#006499\"/>\r\n </svg>\r\n</g>\r\n </svg>\r\n```\r\n\r\n# Output\r\n[Output.svg.txt](https://github.com/RazrFalcon/svgcleaner/files/2520874/Output.svg.txt)\r\n```svg\r\n<svg viewBox=\"0 0 1588 1122.7\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path d=\"m1353.6 509.38h-166.13v-137.33h332.12v137.33z\" fill=\"#23ff23\" fill-rule=\"evenodd\"/>\r\n <svg height=\"155\" transform=\"matrix(.57 0 0 .57 78 324)\" width=\"135\">\r\n  <path d=\"m39.563 37.373c-.007.008-.013.018-.021.025.008-.007.014-.017.021-.025z\" fill=\"none\"/>\r\n </svg>\r\n <svg height=\"590\" stroke-width=\"30.2\" transform=\"matrix(.04903 0 0 .04903 322.69 615.76)\" width=\"1050\">\r\n  <path d=\"m135 45v500m60 0v-500m30 0v500m30 0v-500m60 0v500m30 0v-500m30 0v500\" stroke=\"#900\"/>\r\n </svg>\r\n <svg height=\"192.5\" transform=\"matrix(.1653 0 0 .1653 328.97 486.77)\" width=\"192.5\">\r\n  <path d=\"m91.48 116.7 47.916 72.571 5.21-86.806c-13.89 13.89-34.15 19.32-53.126 14.235z\" fill=\"#396\"/>\r\n </svg>\r\n <svg height=\"350\" transform=\"matrix(.115 0 0 .115 91.5 412)\" version=\"1.0\" width=\"370\">\r\n  <rect fill=\"#e7c78d\" height=\"89.53\" rx=\"9.16\" ry=\"12.28\" stroke=\"#000\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.08\" transform=\"matrix(.9937 -.11215 .12121 .99263 -135.76 -58.89)\" width=\"89.88\" x=\"157.9\" y=\"113.38\"/>\r\n </svg>\r\n <svg height=\"900\" stroke-width=\"2\" transform=\"matrix(.05582 0 0 .05582 86.27 577.37)\" version=\"1.0\" width=\"900\">\r\n  <path d=\"m450-.006c-153.56 0-289.2 77.04-370.44 194.56l87 50.25c63.62-87.7 166.88-144.82 283.44-144.81 116.56 0 219.8 57.1 283.44 144.81l87-50.25c-81.22-117.52-216.8-194.56-370.44-194.56z\" fill=\"#900\"/>\r\n </svg>\r\n <svg fill=\"none\" height=\"1103\" transform=\"matrix(.034 0 0 .034 97 481)\" width=\"941\">\r\n  <circle cx=\"470.5\" cy=\"628\" r=\"388.5\" stroke-width=\"100\"/>\r\n  <circle cx=\"470.5\" cy=\"161\" r=\"125\" stroke=\"#555\"/>\r\n </svg>\r\n <svg height=\"415\" transform=\"matrix(.075 0 0 .075 168 485)\" width=\"758.63\">\r\n  <path d=\"m36 136c-26.26 32.75-25.57 111.4 1 144h21c-20.8-38.13-23.5-102.2 0-144zm698 0c23.5 41.84 20.8 105.9 0 144h21c26.57-32.59 27.26-111.2 1-144z\" fill=\"none\" transform=\"translate(-16.68)\"/>\r\n </svg>\r\n <svg height=\"300\" transform=\"matrix(.12234 0 0 .12061 175.82 414.77)\" version=\"1.0\" width=\"300\">\r\n  <path d=\"m141.66 103.54c5.277 66.03 16.8 129.9 51.198 191.49l13.01.097 82.291-73.419-78.435-198.2-56.54 54.008z\" fill=\"#fdfcf8\" fill-rule=\"evenodd\"/>\r\n </svg>\r\n <svg height=\"1376\" transform=\"matrix(.0256 0 0 .0256 258.69 608.91)\" viewBox=\"-305 -516 610 820\" width=\"1024\">\r\n  <circle fill=\"#900\" r=\"100\"/>\r\n </svg>\r\n <svg height=\"355\" transform=\"matrix(.10569 0 0 .10569 259.24 414.19)\" viewBox=\"-64.5 -177.5 300 355\" width=\"300\">\r\n  <circle fill=\"none\" r=\"59.1\"/>\r\n </svg>\r\n <svg height=\"513\" transform=\"matrix(.08738 0 0 .08693 330.89 414.93)\" width=\"410\">\r\n  <path d=\"m203.5.2c-67.9.5-128 36-164.7 90.2h332c-37-54.6-97.6-90.2-166-90.2z\" fill=\"#608ab4\"/>\r\n </svg>\r\n <svg height=\"511.99\" transform=\"matrix(.063 0 0 .063 254.63 483.66)\" viewBox=\"-400 -525 821.98 671.99\" width=\"626.27\">\r\n  <path d=\"m11.012-492.18c-8.836 1.558-18.191 8.057-27.326 20.323-7.773 10.44-15.173 24.754-21.718 42.231h97.615c-6.627-17.614-14.083-32.038-21.847-42.513-9.076-12.235-18.283-18.611-26.724-20.042zm30.5 2.789c2.565 2.716 5.051 5.692 7.45 8.926 9.622 12.973 18.139 30.174 25.491 50.838h67.62c-27.917-31.001-62.554-52.277-100.56-59.765zm-61.37.067c-37.892 7.547-72.411 28.783-100.24 59.698h67.186c7.271-20.528 15.75-37.629 25.389-50.58 2.462-3.308 5.022-6.349 7.668-9.118zm-50.265 2.972a262.5 262.5 0 0 0 -96.6 56.728h28.175c19.504-24.058 42.683-43.444 68.425-56.728zm163.18.492c25.358 13.256 48.195 32.471 67.457 56.235h28.288a262.5 262.5 0 0 0 -95.746-56.235zm-273.98 70.214a262.5 262.5 0 0 0 -49.452 76.294h43.504c9.169-28.114 21.998-53.865 37.772-76.294h-31.826zm49.198 0c-16.839 21.919-30.621 47.723-40.437 76.294h98.36c3.931-28.324 9.482-53.983 16.309-76.294h-74.234zm88.876 0c-6.984 21.84-12.718 47.591-16.796 76.294h141.09c-4.159-28.678-9.984-54.429-17.022-76.294zm121.93 0c6.88 22.313 12.515 47.985 16.524 76.294h98.529c-9.815-28.573-23.599-54.377-40.437-76.294h-74.618zm91.991 0c15.776 22.431 28.599 48.195 37.77 76.294h43.794a262.5 262.5 0 0 0 -49.893-76.294h-31.672zm-406.94 90.272a262.5 262.5 0 0 0 -15.642 88.51h48.624c0-30.949 4.163-60.743 11.818-88.51zm59.296 0c-7.964 27.536-12.335 57.33-12.335 88.51h108.37c0-31.29 1.748-60.992 4.96-88.51zm115.09 0c-3.271 27.379-5.07 57.146-5.07 88.51h155.08c0-31.343-1.855-61.11-5.201-88.51h-144.82zm158.9 0c3.287 27.536 5.094 57.251 5.094 88.51h108.37c0-31.185-4.372-60.979-12.335-88.51zm115.63 0c7.655 27.773 11.818 57.553 11.818 88.51h48.627a262.5 262.5 0 0 0 -15.717-88.51zm-586.79 102.49v25.484h769.48v-25.484zm26.306 39.459v264.72h102.76v-264.72zm204.7 0v264.72h102.76v-264.72zm204.7 0v264.72h102.76v-264.72zm204.7 0v264.72h102.76v-264.72zm-640.41 278.68v25.484h769.48v-25.484z\" fill=\"#006499\"/>\r\n </svg>\r\n</svg>\r\n\r\n```\r\n\r\nBug #153 is occouring, but also all ` version=\"1.0\"` are keept.\r\n\r\nversion=\"1.0\" is invalid accoring to W3C-Validator if you check it as SVG 1.1 (with DTD)\r\n\r\n<details>\r\n\r\n<summary> Copyright </summary>\r\n\r\nLicense: CC-BY-SA 3.0\r\n\r\nAuthor: Ziko van Dijk\r\n\r\nsource: https://commons.wikimedia.org/wiki/File:Wikimedia_movement_DE_EN.svg\r\n\r\n</details>"},"comment":{"url":"https://api.github.com/repos/RazrFalcon/svgcleaner/issues/comments/433602596","html_url":"https://github.com/RazrFalcon/svgcleaner/issues/179#issuecomment-433602596","issue_url":"https://api.github.com/repos/RazrFalcon/svgcleaner/issues/179","id":433602596,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzYwMjU5Ng==","user":{"login":"RazrFalcon","id":725494,"node_id":"MDQ6VXNlcjcyNTQ5NA==","avatar_url":"https://avatars3.githubusercontent.com/u/725494?v=4","gravatar_id":"","url":"https://api.github.com/users/RazrFalcon","html_url":"https://github.com/RazrFalcon","followers_url":"https://api.github.com/users/RazrFalcon/followers","following_url":"https://api.github.com/users/RazrFalcon/following{/other_user}","gists_url":"https://api.github.com/users/RazrFalcon/gists{/gist_id}","starred_url":"https://api.github.com/users/RazrFalcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RazrFalcon/subscriptions","organizations_url":"https://api.github.com/users/RazrFalcon/orgs","repos_url":"https://api.github.com/users/RazrFalcon/repos","events_url":"https://api.github.com/users/RazrFalcon/events{/privacy}","received_events_url":"https://api.github.com/users/RazrFalcon/received_events","type":"User","site_admin":false},"created_at":"2018-10-27T08:39:24Z","updated_at":"2018-10-27T08:39:24Z","author_association":"OWNER","body":"Nested SVG isn't supported at all..."}}
{"actor":{"display_login":"RazrFalcon"}}