2019.2

Table Of Contents
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>');
Master Page selector
The Designer writes the name of each Master Page to the masterpage attribute of the <html>
element. This attribute can be used in selectors.
Example
This rule adds a box to the body of every Master Page.
[masterpage] body
results.html('<div
style="background:red;width:1in;height:2in">Hello World</div>');
The following rule adds the box only to the Master Page called "Master Page 1".
[masterpage="Master page 1"] body
results.html('<div
style="background:red;width:1in;height:2in">Hello World</div>');
Sheet position selectors
In Print output, pages have a sheet position that depends on the options set in the "Sheet
Configuration dialog" on page511 (e.g. the Duplex and Allow Content On options). Connect
gives each page - or rather, the "MediaBox" div element on that page - a class depending on
their sheet position:
l .frontside
l .backside (does not apply to simplex documents)
l .contentpage
l .nocontentpage
Page 408