Sudo

back edit

Use form[data-sudo-required] to guard submission.

<form data-sudo-required="high" action="https://httpbin.org/get">
  <input value="github" name="username" class="form-control">
  <button type="submit" class="btn btn-primary">Change username</button>
</form>

Use summary[data-sudo-required] to guard <details> activation (and <details-menu>'s deferred content loading).

<details class="details-reset details-overlay">
  <summary data-sudo-required="high" class="btn">
    Menu with secret options <span class="dropdown-caret"></span>
  </summary>
  <details-menu class="SelectMenu" src="../../support/menuitems.html">
    <div class="SelectMenu-modal">
      <include-fragment></include-fragment>
    </div>
  </details-menu>
</details>