Security, Privacy, AI and CSR information for all Piano products now lives in one place. Explore our Compliance Center.
Subscriptions
English French
English French

Is Context Availability Dependent on the Encapsulation Type?

LIGHTWEIGHT TEMPLATES

No. Context availability in Lightweight templates does not depend on the encapsulation type. All context objects are available even when the encapsulation type is iframe. The context... construction is always available when writing JavaScript code in the JS tab of the template editor, regardless of whether the template uses Shadow DOM, iframe, or any other encapsulation.

Last updated: