Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editorial: Modernize and replace prose with algorithms in BatteryManager #46

Merged

Commits on Sep 2, 2021

  1. editorial: Modernize and replace prose with algorithms in BatteryManager

    Similarly to w3c#45, make the `BatteryManager` section more conformant to
    modern spec writing practices, while avoiding making user-visible changes as
    much as possible:
    - Define a task source for this spec, and switch from "queue a task" to the
      more specific and recent "queue a global task" algorithm.
    - Replace a lot of prose with internal slots and algorithms.
    - Make the interface attributes simply return the values of the internal
      slots rather than defining logic in their getters.
    - Define an actual algorithm for updating internal slots and dispatching
      events. The existing prose just said "the UA must change the attribute and
      fire an event" without really defining how to reach a `BatteryManager`
      object in the first place.
    rakuco committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    79ec094 View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2021

  1. Configuration menu
    Copy the full SHA
    f692fbf View commit details
    Browse the repository at this point in the history
  2. Remove non-normative description of BatteryManager's internal slots.

    The contents are essentially the same as the normative descriptions in the
    subsequent section.
    rakuco committed Sep 6, 2021
    Configuration menu
    Copy the full SHA
    6d53002 View commit details
    Browse the repository at this point in the history
  3. Use {{BatteryManager}} to refer to it in the text.

    Refer to the Web IDL interface rather than the BatteryManager concept.
    rakuco committed Sep 6, 2021
    Configuration menu
    Copy the full SHA
    6921632 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2021

  1. Configuration menu
    Copy the full SHA
    65d32d6 View commit details
    Browse the repository at this point in the history