Skip to content

TagSpec

A structure element with attributes; type may be a custom name when role is given.

readonly optional actualText?: string

/ActualText: the exact text the content stands for.


readonly optional alt?: string

/Alt: alternate text (a Figure needs it).


readonly optional expansion?: string

/E: the expansion of an abbreviation.


readonly optional lang?: string

/Lang: the element’s language (BCP 47).


readonly optional role?: "Document" | "Part" | "Sect" | "H1" | "H2" | "H3" | "H4" | "H5" | "H6" | "P" | "L" | "LI" | "Lbl" | "LBody" | "Table" | "TR" | "TH" | "TD" | "Figure" | "Caption" | "Link" | "Span" | "Quote" | "Note" | "Code"

The standard type a custom type stands for.


readonly optional scope?: "row" | "column" | "both"

/Scope of a TH.


readonly type: "Document" | "Part" | "Sect" | "H1" | "H2" | "H3" | "H4" | "H5" | "H6" | "P" | "L" | "LI" | "Lbl" | "LBody" | "Table" | "TR" | "TH" | "TD" | "Figure" | "Caption" | "Link" | "Span" | "Quote" | "Note" | "Code" | string & object

A standard type, or a custom name written with a RoleMap entry to role.