Skip to content

MathDomNode

Namespace: Temml

public abstract class MathDomNode

The base of the nodes of a build tree. Maps to the node classes of src/tree.js, src/domTree.js and src/mathMLTree.js.

Inheritance: object

Derived: AnchorNode, DocumentFragment, HtmlTextNode, Img, MathNode, Span, TextNode

View source

public DomPropertyMap Attributes { get; set; }

The attributes.

Value: DomPropertyMap

View source

public List<MathDomNode> Children { get; set; }

The child nodes.

Value: List<MathDomNode>

View source

public List<string> Classes { get; set; }

The CSS classes.

Value: List<string>

View source

public DomPropertyMap Style { get; set; }

The inline style, with camel case names.

Value: DomPropertyMap

View source

public string? Type { get; set; }

The tag name of a MathNode; null for other nodes.

Value: string

View source

public string? GetAttribute(string name)

Gets an attribute, or null.

Parameters

Name Type Description
name string

Returns: string

View source

public bool HasClass(string className)

Whether the node has the CSS class.

Parameters

Name Type Description
className string

Returns: bool

View source

public virtual void SetAttribute(string name, string? value)

Sets an attribute.

Parameters

Name Type Description
name string
value string

View source

public string ToMarkup()

Converts the node and its children into markup.

Returns: string

View source

public virtual string ToText()

The text of the node and its children, similar to innerText.

Returns: string

View source

MIT · Copyright 2020 Ron Kok · unofficial community port of Temml