public static IDictionary <string, string> ToAttributesDictionary(this TagHelperAttributeList list) => list.ToDictionary( a => a.Name, a => a.ValueStyle == HtmlAttributeValueStyle.Minimized ? string.Empty : a.Value.ToString());