2018.2

Table Of Contents
Function Description
size() Gets the number of elements in this result set. Equivalent to the
length property.
tagName() Returns the HTML tag name of the first element in this result set, in
uppercase. For an example see: "Creating a Table Of Contents" on
page767.
"Example" on
page1136
Replaces the textcontentof an HTML element or of each element in a
set of HTML elements with the supplied value, or returns the text
content of the first element if no value is supplied.
width() Gets or sets the outer width of an element, including padding and
borders.
info()
Returns pagination information for one element in the result set (see "results" on page1192) of
a query across all sections in a Print context (see "query(selector)" on page1191).
The returned information is of the type PaginationInfo (see "PaginationInfo" on page1191).
This function can only be used in a Post Pagination Script ; see "Post Pagination Script API" on
page1188.
For an example see: "Creating a Table Of Contents" on page767.
section
The section object can be used to query and modify how the section (and the related context)
will be outputted. It is one of the most important objects in Control Scripts (see "Control Scripts"
on page751 and "Control Script API" on page1162).
Retrieving a section
A section can be retrieved using merge.template.contexts.ContextType.sections["section
name"], for example: merge.template.contexts.PRINT.sections["Section EN"].
Page 1196