Table of Contents

Class SvgElement

Namespace
AngleSharp.Svg.Dom
Assembly
AngleSharp.dll

Represents an element of the SVG DOM.

public class SvgElement : Element, IEquatable<INode>, ISvgElement, IElement, INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode
Inheritance
SvgElement
Implements
Inherited Members
Extension Methods

Constructors

SvgElement(Document, string, string?, NodeFlags)

public SvgElement(Document owner, string name, string? prefix = null, NodeFlags flags = NodeFlags.None)

Parameters

owner Document
name string
prefix string
flags NodeFlags

Methods

Clone(Document, bool)

Clones the current node using the new owner.

public override Node Clone(Document owner, bool deep)

Parameters

owner Document
deep bool

True if a deep clone is wanted, otherwise false.

Returns

Node

The cloned node.

ParseSubtree(string)

Takes a given string source and parses it into a subtree using the current element as context. Follows the fragment parsing strategy for the given namespace.

public override IElement ParseSubtree(string html)

Parameters

html string

Returns

IElement

The documentElement of the new subtree.