{"action":"created","issue":{"url":"https://api.github.com/repos/Taritsyn/WebMarkupMin/issues/8","repository_url":"https://api.github.com/repos/Taritsyn/WebMarkupMin","labels_url":"https://api.github.com/repos/Taritsyn/WebMarkupMin/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/Taritsyn/WebMarkupMin/issues/8/comments","events_url":"https://api.github.com/repos/Taritsyn/WebMarkupMin/issues/8/events","html_url":"https://github.com/Taritsyn/WebMarkupMin/issues/8","id":159394288,"number":8,"title":"MarkupMinificationException when having nested SVG element inside an SVG","user":{"login":"kimpenhaus","id":575109,"avatar_url":"https://avatars.githubusercontent.com/u/575109?v=3","gravatar_id":"","url":"https://api.github.com/users/kimpenhaus","html_url":"https://github.com/kimpenhaus","followers_url":"https://api.github.com/users/kimpenhaus/followers","following_url":"https://api.github.com/users/kimpenhaus/following{/other_user}","gists_url":"https://api.github.com/users/kimpenhaus/gists{/gist_id}","starred_url":"https://api.github.com/users/kimpenhaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimpenhaus/subscriptions","organizations_url":"https://api.github.com/users/kimpenhaus/orgs","repos_url":"https://api.github.com/users/kimpenhaus/repos","events_url":"https://api.github.com/users/kimpenhaus/events{/privacy}","received_events_url":"https://api.github.com/users/kimpenhaus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-09T12:21:11Z","updated_at":"2016-06-09T14:23:20Z","closed_at":null,"body":"When we try to minify HTML Code with having nested SVG elements inside another SVG the minification process stops with an exception:\r\n\r\n```\r\nAn exception of type WebMarkupMin.Core.Minifiers.MarkupMinificationException occurred and was caught.\r\n-------------------------------------------------------------------------------------------------------\r\n06/09/2016 14:08:21\r\nType : WebMarkupMin.Core.Minifiers.MarkupMinificationException, WebMarkupMin.Core, Version=1.1.0.0, Culture=neutral, PublicKeyToken=99472178d266584b\r\nMessage : Category: HTML_MINIFICATION_ERROR\r\nMessage: During minification of SVG-code error has occurred: \"Tag <svg> was not closed.\".\r\nSource fragment:\r\n\r\nLine 614:         <defs>\r\nLine 615:             <svg id=\"sparziel-point\" class=\"smartmeter-vertrag-wrapper__svg--sparziel__point-wrapper\" …\r\n----------------------^\r\nLine 616:                 <circle r=\"8px\" cx=\"0\" cy=\"-2\" style=\"fill: white; stroke-width: 4px; stroke: #f90;\" clas…\r\n\r\n\r\nSource : WebMarkupMin.Core\r\nHelp link : \r\nData : System.Collections.ListDictionaryInternal\r\nTargetSite : Void Error(System.String, System.String, System.String, Int32, Int32, System.String)\r\nHResult : -2146233088\r\nStack Trace :    bei WebMarkupMin.Core.Loggers.ThrowExceptionLogger.Error(String category, String message, String filePath, Int32 lineNumber, Int32 columnNumber, String sourceFragment)\r\n   bei WebMarkupMin.Core.Minifiers.GenericHtmlMinifier.ProcessEmbeddedSvgContent(MarkupParsingContext context, String svgContent)\r\n   bei WebMarkupMin.Core.Minifiers.GenericHtmlMinifier.TextHandler(MarkupParsingContext context, String text)\r\n   bei WebMarkupMin.Core.Parsers.HtmlParser.ProcessEmbeddedCode()\r\n   bei WebMarkupMin.Core.Parsers.HtmlParser.Parse(String content)\r\n   bei WebMarkupMin.Core.Minifiers.GenericHtmlMinifier.Minify(String content, String fileContext, Encoding encoding, Boolean generateStatistics)\r\n   bei WebMarkupMin.Web.Filters.MarkupMinificationFilterStreamBase`1.Close()\r\n   bei System.Web.HttpWriter.FilterIntegrated(Boolean finalFiltering, IIS7WorkerRequest wr)\r\n   bei System.Web.HttpResponse.FilterOutput()\r\n   bei System.Web.HttpApplication.CallFilterExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()\r\n   bei System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)\r\n```\r\n\r\nThe HTML snippet which is causing the exception is:\r\n\r\n```HTML\r\n<svg width=\"100%\" viewBox=\"0 0 290 150\" preserveAspectRatio=\"xMidYMin\" class=\"some-class\">\r\n                    <desc>some description</desc>\r\n                    <defs>\r\n                        <mask id=\"inner-arc\">\r\n                            <circle class=\"chart__svg__circle\" cx=\"145\" cy=\"150\" r=\"96\" />\r\n                        </mask>\r\n                        <mask id=\"outer-arc\">\r\n                            <circle class=\"chart__svg__circle\" cx=\"145\" cy=\"150\" r=\"130\" />\r\n                        </mask>\r\n                    </defs>\r\n                    <rect transform=\"rotate( @Model.PrognostizierterVerbrauchWinkel 145 150 )\" enbw:data=\"rotate( @Model.PrognostizierterVerbrauchWinkel 145 150 )\" x=\"0\" y=\"0\" mask=\"url(#inner-arc)\" class=\"chart__svg__fill--basic rotatable_js\" width=\"290\" height=\"150\" />\r\n                    <rect transform=\"rotate( @Model.AktuellerVerbrauchWinkel 145 150 )\" enbw:data=\"rotate( @Model.AktuellerVerbrauchWinkel 145 150 )\" mask=\"url(#outer-arc)\" class=\"chart__svg__fill--ht rotatable_js\" width=\"290\" height=\"150\" x=\"0\" y=\"0\" />\r\n </svg>\r\n```\r\n\r\nIf you need any further information, please let me know. \r\nThanks for taking your time, I really appreciate!"},"comment":{"url":"https://api.github.com/repos/Taritsyn/WebMarkupMin/issues/comments/224910130","html_url":"https://github.com/Taritsyn/WebMarkupMin/issues/8#issuecomment-224910130","issue_url":"https://api.github.com/repos/Taritsyn/WebMarkupMin/issues/8","id":224910130,"user":{"login":"Taritsyn","id":251859,"avatar_url":"https://avatars.githubusercontent.com/u/251859?v=3","gravatar_id":"","url":"https://api.github.com/users/Taritsyn","html_url":"https://github.com/Taritsyn","followers_url":"https://api.github.com/users/Taritsyn/followers","following_url":"https://api.github.com/users/Taritsyn/following{/other_user}","gists_url":"https://api.github.com/users/Taritsyn/gists{/gist_id}","starred_url":"https://api.github.com/users/Taritsyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Taritsyn/subscriptions","organizations_url":"https://api.github.com/users/Taritsyn/orgs","repos_url":"https://api.github.com/users/Taritsyn/repos","events_url":"https://api.github.com/users/Taritsyn/events{/privacy}","received_events_url":"https://api.github.com/users/Taritsyn/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T14:23:20Z","updated_at":"2016-06-09T14:23:20Z","body":"Thanks for information!\r\n\r\nNext week I will fix this error. Unfortunately, at the moment there is no free time."}}
{"actor":{"display_login":"Taritsyn"}}