From 1c1a2bd9be0b065f1ee3965d491e992e103fe090 Mon Sep 17 00:00:00 2001 From: Raphael Kubo da Costa Date: Mon, 22 Jul 2024 15:52:43 +0200 Subject: [PATCH] editorial: Reorganize internal slots into different sections (#156) In #152, it was reported that the `[[PostureOverride]]` slot was confusing, and readers could end up thinking that its `null` value could be exposed to script, which is not the case (this internal slot is only used internally in calculations that result in a DevicePostureType). To avoid confusion: - Rename the "Internal slots" section to "Extensions to the Document interface", which is similar to what we already have for the Navigator interface. - Move the `[[PostureOverride]]` slot's definition and the addition of internal slots to top-level traversables to the Automation section, and add a sentence explaining the values are not exposed to script directly. While here, do some proof-reading in the "Extensions to the Document interface" section. Fixes #152 --- index.html | 82 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 42 insertions(+), 40 deletions(-) diff --git a/index.html b/index.html index 24dd034..3532bc0 100644 --- a/index.html +++ b/index.html @@ -156,12 +156,10 @@

- Internal slots + Extensions to the `Document` interface

The following internal slots are added to the {{Document}} interface. - As it name implies, it will house the value of the current posture the - device is

@@ -180,43 +178,7 @@

[[\CurrentPosture]]

- - -
- The current posture. -
-

- [=Top-level traversables=] must have the following internal slots: -

- - - - - - - - - - - @@ -793,6 +755,46 @@

commands=] that allows users to control the reported device posture and simulate a real device.

+

+ To support the [=extension commands=] below and their integration with + [[[#algorithms]]], [=top-level traversables=] must have the following + internal slots: +

+

- Internal slot - - Description -
- [[\PostureOverride]] - - Posture to override posture defined by hardware. Used in - automation. Possible values: -
    -
  • "{{DevicePostureType/continuous}}" -
  • -
  • "{{DevicePostureType/folded}}" -
  • -
  • - null: Used when posture is defined by hardware. -
  • -
+ The device's current posture.
+ + + + + + + + + + + + +
+ Internal slot + + Description +
+ [[\PostureOverride]] + + Overrides the [=current posture=] provided by the hardware. + Possible values: +
    +
  • "{{DevicePostureType/continuous}}" +
  • +
  • "{{DevicePostureType/folded}}" +
  • +
  • + null: Not overriding. The hardware-provided + value will be used instead. +
  • +
+ These values are not exposed directly to script. +

Extension Commands