Skip to content
Marcos Caceres edited this page Mar 28, 2026 · 2 revisions

.permission / data-dfn-type="permission"

Marks a <dfn> as defining a browser permission string, as used in the Permissions API. The permission name should be a quoted string.

Usage

<p>
  The Geolocation API is identified by the powerful feature name
  <dfn class="permission">"geolocation"</dfn>.
</p>

Or equivalently:

<dfn data-dfn-type="permission">"geolocation"</dfn>

Notes

  • Permission names are quoted strings per the Permissions API spec (e.g., "geolocation", "camera")
  • Using class="permission" is equivalent to data-dfn-type="permission"
  • Permission definitions are exported and linkable via xref

Guides

Configuration options

W3C Configuration options

Linting rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

HTML attributes

CSS Classes

Special properties

Clone this wiki locally