Text element is data structure defining a markup element.
It has an identifier, optional collection of attributes,
and optional children. If children are missing, then the element
is self-closing.
interface text element
extends text node