2019.2

Table Of Contents
Warning
Avoid using classes with the __ol prefix in your selectors. These dynamically added
class names may change in future releases of the software.
Section selector
The Designer writes the name of each section to the section attribute of the <html> element.
This attribute can be used in selectors.
Note
To make scripts run exclusively on certain sections, it is advised to put them in folders
and set the execution scope of the scripts in a folder via the folder properties; see
"Execution scope" on pageξ˜ƒ861.
Example
The following rule applies formatting to <h1> elements in sections of which the name starts with
β€˜Letter’:
[section^='Letter'] h1 {
color: brown;
}
Note
In versions prior to 2019.2 the section selector would work on sections as well as Master
Pages. As of version 2019.2 this is no longer the case. The section selector now only
selects sections.
To target sections as well as Master Pages, use the body selector without the masterpage
or section selector. For example:
body
results.html('<div
style="background:red;width:1in;height:2in">Hello
World</div>');
Page 880