MathElement
Represents an element of the MathML DOM.
using AngleSharp.Dom;
namespace AngleSharp.Mathml.Dom
{
public class MathElement : Element
{
public MathElement(Document owner, string name, string prefix = null, NodeFlags flags = NodeFlags.None)
: base(owner, name, prefix, NamespaceNames.MathMlUri, flags | NodeFlags.MathMember)
{
}
public override IElement ParseSubtree(string html)
{
return this.ParseHtmlSubtree(html);
}
public override Node Clone(Document owner, bool deep)
{
MathElement mathElement = base.Context.GetFactory<IElementFactory<Document, MathElement>>().Create(owner, base.LocalName, base.Prefix);
CloneElement(mathElement, owner, deep);
return mathElement;
}
}
}