MathElement
Represents an element of the MathML DOM.
using AngleSharp.Dom;
using System.Runtime.CompilerServices;
namespace AngleSharp.Mathml.Dom
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public class MathElement : Element
{
public MathElement(Document owner, string name, [System.Runtime.CompilerServices.Nullable(2)] 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, NodeFlags.None);
CloneElement(mathElement, owner, deep);
return mathElement;
}
}
}