web-components. OpenPGPEncryptedForm

Custom HTML element that renders a signed, encrypted form. Wraps
Mailvelope#createEncryptedFormContainer so partners can embed an
encrypted form declaratively in HTML instead of via JavaScript.

The form definition is provided as the innerText of a single child
<script> element. The signature attribute carries the OpenPGP signature
over that definition. On submit, the element dispatches an encrypt event
whose detail.armoredData is the encrypted form payload.

Fires:
  • event:connected - Dispatched once the element is attached to the document.
  • encrypt - Dispatched on successful encryption. `event.detail.armoredData` (AsciiArmored) holds the encrypted payload.event:
  • error - Standard `ErrorEvent`. `event.error.code` may be one of: `NO_FORM_ID` (id attribute missing), `NO_FORM_SCRIPT` (no child `