For example, the following HTML:

<span>Foxtrot</span>

Yields:

{
type: 'element',
tagName: 'span',
properties: {},
children: [{type: 'text', value: 'Foxtrot'}]
}
interface Text {
    data?: Data;
    position?: Position;
    type: "text";
    value: string;
}

Hierarchy (View Summary)

Properties

data?: Data
position?: Position
type: "text"
value: string