/// <summary> /// Setups a new SVG element with the attributes from the token. /// </summary> /// <param name="element">The element to setup.</param> /// <param name="tag">The tag token to use.</param> /// <returns>The finished element.</returns> public static SvgElement Setup(this SvgElement element, HtmlTagToken tag) { var count = tag.Attributes.Count; for (var i = 0; i < count; i++) { var name = tag.Attributes[i].Key; var value = tag.Attributes[i].Value; element.AdjustAttribute(name.AdjustToSvgAttribute(), value); } return(element); }