AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.8.3" />

 SvgElement

Represents an element of the SVG DOM.
using AngleSharp.Dom.Css; using AngleSharp.Html; namespace AngleSharp.Dom.Svg { internal class SvgElement : Element, ISvgElement, IElement, INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode, IElementCssInlineStyle { private CssStyleDeclaration _style; public ICssStyleDeclaration Style => _style ?? (_style = new CssStyleDeclaration((string)null)); public SvgElement(Document owner, string name, string prefix = null, NodeFlags flags = NodeFlags.None) : base(owner, name, prefix, Namespaces.SvgUri, flags | NodeFlags.SvgMember) { } public override INode Clone(bool deep = true) { SvgElement svgElement = Factory.SvgElements.Create(base.Owner, base.LocalName, base.Prefix); Node.CopyProperties(this, svgElement, deep); Element.CopyAttributes(this, svgElement); return svgElement; } } }