Implementation of a text element with children.
class base element
extends debuggable
implements text element
private element id id
private immutable dictionary[attribute id, attribute fragment] the attributes
private text fragment or null the children
overload base element(element id id)
this(id, list dictionary[attribute id, attribute fragment] • new(), missinginstance)
public overload base element(element id id, readonly dictionary[attribute id, attribute fragment] attributes, text fragment or null children)
this • id = id
this • the attributes = attributesfrozen copy()
this • the children = children
static overload text element make(element id id, text fragment or null children)
return base element • new(id, list dictionary[attribute id, attribute fragment] • new(), children)
override element id get id => id
override immutable text fragment or null children => the children
override string to string()
return "<" ++ idto string ++ " ...>"