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, NodeFlags flags = NodeFlags.None)
: base(owner, name, flags | NodeFlags.MathMember)
{
base.NamespaceUri = Namespaces.MathMlUri;
}
public override INode Clone(bool deep = true)
{
MathElement mathElement = Factory.MathElements.Create(base.NodeName, base.Owner);
Node.CopyProperties(this, mathElement, deep);
Element.CopyAttributes(this, mathElement);
return mathElement;
}
}
}