Skip to content

Guideline for API names and descriptions #822

Open
@foolip

Description

@foolip

In #810 and #752 we have some names and descriptions that feel a bit quirky compared to how most resources talk about them.

Should the name be:

  • Audio session or Audio Session API
  • Media session or Media Session API
  • Device posture or Device Posture API

Should the description start with:

  • The navigator.audioSession object, the navigator.audioSession API, or the Audio Session API?
  • The navigator.mediaSession object, the navigator.mediaSession API, or the Media Session API?
  • The navigator.devicePosture object, the navigator.devicePosture API, or the Device Posture API?

Considerations:

  • If we include "API", do we always do it or only when that's the spec name? https://w3c.github.io/device-posture/ includes it but the other two do not
  • Calling something "object" is technically correct, but I worry that it overfocuses on the API entry point, and that the features aren't normally referred to be their entry point, especially things on navigator, since navigator is effectively a namespace to avoid putting stuff on window.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions