public void SetAttribute(string name, string value) { var lowerCaseName = name.ToLowerInvariant(); _attributes[lowerCaseName] = value; }
private static void SetAttributes(HtmlElement element, MatchCollection matches) { foreach (Match match in matches) element.SetAttribute(match.Groups["name"].Value, match.Groups["value"].Value); }