You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception has occurred: CLR/System.InvalidOperationException
An unhandled exception of type 'System.InvalidOperationException' occurred in System.Linq.dll: 'Sequence contains more than one matching element'
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
at WebMarkupMin.Core.Parsers.HtmlParser.ParseStartTag(String tagName, String tagNameInLowercase, IList`1 attributes, Boolean isEmptyTag)
at WebMarkupMin.Core.Parsers.HtmlParser.ProcessStartTag()
at WebMarkupMin.Core.Parsers.HtmlParser.Parse(String content)
at WebMarkupMin.Core.GenericHtmlMinifier.Minify(String content, String fileContext, Encoding encoding, Boolean generateStatistics)
at WebMarkupMin.Core.HtmlMinifier.Minify(String content)
I'm using .NET Core 2.1 and the latest NuGet version of WebMarkupMin.Core (2.5.5).
HtmlMinifier.Minify sometimes throws InvalidOperationException. Here's the full program to reproduce it:
The full stack trace:
I'm using .NET Core 2.1 and the latest NuGet version of WebMarkupMin.Core (2.5.5).
Found via SharpFuzz.
The text was updated successfully, but these errors were encountered: