Skip to content

Commit

Permalink
Fix "accelerometer" feature name references
Browse files Browse the repository at this point in the history
The permission names are shared across Permissions and Permissions Policy specs:
https://www.w3.org/TR/permissions/#relationship-to-permissions-policy

Removes the need for Bikeshed’s manually-maintained list of special linking rules,
can use the definition type-based namespacing syntax for both instead:
<dfn permission export>"accelerometer"</dfn> -> <a permission>"accelerometer"</a>
https://speced.github.io/bikeshed/#dfn-types
  • Loading branch information
anssiko committed Oct 7, 2024
1 parent b7da34f commit 75e7eaf
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ urlPrefix: https://www.w3.org/TR/screen-orientation/; spec: SCREEN-ORIENTATION
text: current orientation type; url: dfn-current-orientation-type
text: dom screen; url: dom-screen
</pre>
<pre class=link-defaults>
spec:orientation-event; type:dfn; text:accelerometer-feature
spec:orientation-event; type:permission; text:accelerometer
</pre>

<pre class=biblio>
{
Expand Down Expand Up @@ -173,7 +169,7 @@ in the Generic Sensor API [[!GENERIC-SENSOR]].
Permissions Policy integration {#permissions-policy-integration}
==============================

This specification utilizes the [=policy-controlled feature=] identified by the string "<code><a data-lt="accelerometer-feature">accelerometer</a></code>" defined in [[DEVICE-ORIENTATION#permissions-policy-integration]].
This specification utilizes the [=policy-controlled feature=] identified by the string <code><a permission>"accelerometer"</a></code> defined in [[DEVICE-ORIENTATION#permissions-integration]].

Model {#model}
=====
Expand All @@ -188,7 +184,7 @@ The <dfn id="accelerometer-sensor-type">Accelerometer</dfn> <a>sensor type</a> h
: [=Sensor permission names=]
:: "<code><a permission>accelerometer</a></code>"
: [=Sensor feature names=]
:: "[=accelerometer-feature|accelerometer=]"
:: <a permission>"accelerometer"</a>
: [=powerful feature/Permission revocation algorithm=]
:: Invoke the [=generic sensor permission revocation algorithm=] with "<code><a permission>accelerometer</a></code>".
: [=Default sensor=]
Expand Down Expand Up @@ -221,7 +217,7 @@ The <dfn id="linear-acceleration-sensor-sensor-type">Linear Acceleration Sensor<
: [=Sensor permission names=]
:: "<code><a permission>accelerometer</a></code>"
: [=Sensor feature names=]
:: "[=accelerometer-feature|accelerometer=]"
:: <a permission>"accelerometer"</a>
: [=powerful feature/Permission revocation algorithm=]
:: Invoke the [=generic sensor permission revocation algorithm=] with "<code><a permission>accelerometer</a></code>".
: [=Virtual sensor type=]
Expand All @@ -246,7 +242,7 @@ The <dfn id="gravity-sensor-sensor-type">Gravity Sensor</dfn> <a>sensor type</a>
: [=Sensor permission names=]
:: "<code><a permission>accelerometer</a></code>"
: [=Sensor feature names=]
:: "[=accelerometer-feature|accelerometer=]"
:: <a permission>"accelerometer"</a>
: [=powerful feature/Permission revocation algorithm=]
:: Invoke the [=generic sensor permission revocation algorithm=] with "<code><a permission>accelerometer</a></code>".
: [=Virtual sensor type=]
Expand Down

0 comments on commit 75e7eaf

Please sign in to comment.