MathElement
Represents an element of the MathML DOM.
using AngleSharp.Html;
namespace AngleSharp.Dom.Mathml
{
internal class MathElement : Element
{
public MathElement(Document owner, string name, string prefix = null, NodeFlags flags = NodeFlags.None)
: base(owner, name, prefix, Namespaces.MathMlUri, flags | NodeFlags.MathMember)
{
}
public override INode Clone(bool deep = true)
{
MathElement mathElement = Factory.MathElements.Create(base.Owner, base.LocalName, base.Prefix);
Node.CopyProperties(this, mathElement, deep);
Element.CopyAttributes(this, mathElement);
return mathElement;
}
}
}