2021.1

Table Of Contents
info()
Returns pagination information for one HTML element or for the first element in a result set (see
"results" on page1427) of a query across all sections in a Print context (see "query(selector)"
on page1425).
The returned information is of the type PaginationInfo (see "PaginationInfo" on page1426).
This function can only be used in a Post Pagination Script ; see "Post Pagination Script API" on
page1421.
For an example see: "Creating a Table Of Contents" on page921.
next()
next() returns the next sibling of an HTML element, which can be:
l The elements that match the selector of a script (see "results" on page1427).
l One element that matches the selector of a script that runs for "Each matched element"
(see "this" on page1345 and "Setting the scope of a script" on page874).
l The elements returned by a query in the template (see "query()" on page1299).
In HTML, siblings are HTML elements that share the same parent, i.e. HTML elements in the
same container element.
Note that a sibling can be a different type of element. For example, if a paragraph, an image
and a table follow each other in the same Box, they are siblings.
Tip
To get the previous sibling, use previous() (see "prev()" on page1377).
What if there are no siblings?
If you call prev() or next() on a collection of elements (either "results" on page1427 or the
result set of "query()" on page1299), the function will return a collection of siblings. If none of
the elements has a previous or next sibling, the collection will be empty. Actions performed on
an empty collection will simply have no effect.
Page 1370