diff --git a/index.html b/index.html index 97de8c4..6d6b447 100644 --- a/index.html +++ b/index.html @@ -250,7 +250,7 @@

-
  • Let |typedDescriptor| be the object |permissionDesc| refers to, converted to an - IDL value of |rootDesc|'s {{PermissionDescriptor/name}}'s [=powerful +
  • Let |typedDescriptor| be the object |permissionDesc| refers to, [=converted to an + IDL value=] of |rootDesc|'s {{PermissionDescriptor/name}}'s [=powerful feature/permission descriptor type=].
  • -
  • If the conversion [=exception/throws=] an [=exception=], return a promise - rejected with that exception. +
  • If the conversion [=exception/throws=] an [=exception=], return [=a promise + rejected with=] that exception.
  • Let |promise:Promise| be [=a new promise=].
  • Return |promise| and continue [=in parallel=]:
      -
    1. Let |status| be create a `PermissionStatus` with |typedDescriptor|. +
    2. Let |status| be [=create a `PermissionStatus`=] with |typedDescriptor|.
    3. Let |query| be |status|'s {{PermissionStatus/[[query]]}} internal slot.
    4. @@ -1083,8 +1083,8 @@

      `onchange` attribute

      - The onchange attribute is an event handler whose corresponding - event handler event type is change. + The onchange attribute is an [=event handler=] whose corresponding + [=event handler event type=] is change.

      Whenever the [=user agent=] is aware that the state of a {{PermissionStatus}} instance @@ -1108,7 +1108,7 @@

      algorithm=], passing |query| and |status|.
    5. - Queue a task on the [=permissions task source=] to fire an event named + [=Queue a task=] on the [=permissions task source=] to [=fire an event=] named change at |status|.
    @@ -1179,8 +1179,8 @@

    For the purposes of user-agent automation and application testing, this document defines - the following extension commands for the [[WebDriver]] specification. It is OPTIONAL - for a user agent to support extension commands commands. + the following [=extension commands=] for the [[WebDriver]] specification. It is OPTIONAL + for a user agent to support [=extension commands=] commands.

             dictionary PermissionSetParameters {
    @@ -1214,49 +1214,49 @@ 

    The Set Permission - extension command simulates user modification of a {{PermissionDescriptor}}'s - permission state. + [=extension command=] simulates user modification of a {{PermissionDescriptor}}'s + [=permission state=].

    - The remote end steps are: + The [=remote end steps=] are:

      -
    1. Let |parameters| be the |parameters| argument, converted to an IDL value of +
    2. Let |parameters| be the |parameters| argument, [=converted to an IDL value=] of type {{PermissionSetParameters}}. If this throws an exception, return an [=invalid argument=] [=error=].
    3. Let |rootDesc| be |parameters|.{{PermissionSetParameters/descriptor}}.
    4. -
    5. Let |typedDescriptor| be the object |rootDesc| refers to, converted to an IDL - value of |rootDesc|.{{PermissionDescriptor/name}}'s [=powerful +
    6. Let |typedDescriptor| be the object |rootDesc| refers to, [=converted to an IDL + value=] of |rootDesc|.{{PermissionDescriptor/name}}'s [=powerful feature/permission descriptor type=]. If this throws an exception, return a [=invalid argument=] [=error=].
    7. -
    8. If |parameters|.{{PermissionSetParameters/state}} is an inappropriate permission - state for any implementation-defined reason, return a [=invalid argument=] [=error=]. +
    9. If |parameters|.{{PermissionSetParameters/state}} is an inappropriate [=permission + state=] for any implementation-defined reason, return a [=invalid argument=] [=error=].

      - For example, user agents that define the "midi" powerful feature as - "always on" may choose to reject a command to set the permission state to + For example, [=user agents=] that define the "midi" [=powerful feature=] as + "always on" may choose to reject a command to set the [=permission state=] to {{PermissionState/"denied"}} at this step.

    10. Let |settings| be the [=current settings object=].
    11. -
    12. Let |targets| be a list containing all environment settings objects +
    13. Let |targets| be a [=list=] containing all [=environment settings objects=] whose [=environment settings object/origin=] is the same as the [=environment settings object/origin=] of |settings|.
    14. -
    15. Let |tasks| be an empty list. +
    16. Let |tasks| be an empty [=list=].
    17. -
    18. For each environment settings object |target| in |targets|: +
    19. For each [=environment settings object=] |target| in |targets|:
      1. - Queue a task |task| on the [=permissions task source=] of |target|'s + [=Queue a task=] |task| on the [=permissions task source=] of |target|'s [=relevant settings object=]'s [=environment settings object/global object=]'s [=Window/browsing context=] to perform the following step:
        1. Interpret |parameters|.{{PermissionSetParameters/state}} as if it were the - result of an invocation of permission state for |typedDescriptor| with the + result of an invocation of [=permission state=] for |typedDescriptor| with the argument |target| made at this moment.
        @@ -1265,15 +1265,15 @@

    20. -
    21. Wait for all tasks in |tasks| to have executed. +
    22. Wait for all [=tasks=] in |tasks| to have executed.
    23. -
    24. Return success with data `null`. +
    25. Return [=success=] with data `null`.