Skip to content

Consider better styling for API intro notes #907

@domenic

Description

@domenic

Compare the green notes at https://streams.spec.whatwg.org/#rs-prototype to those right below https://dom.spec.whatwg.org/#event-path.

We're different than them in that we only do one API per section, so at first glance that list style isn't that necessary. But the "domintro" style shown there is a bit better than ours in a few ways:

  • Nice "For web developers (non-normative)" label, instead of "Note"
  • Not everything is italic.
  • They don't repeat the API name (E.g. instead of "The pipeThrough method provides..." we'd just say "Provides...")
  • They give very bare-bones usage examples and notation, which is sometimes nice. For example, we could use [, x] to denote optionality, or spell out dictionaries even if the standard treats them as a single variable, or show that tee()s return value is usually used with destructuring, or insert await before promise-returning method calls... Could be nice.

Should we adapt? Should we do anything different than most specs do, because of our one-API-per-section nature? Thoughts appreciated. Once we have a plan, I'd like to turn this into a "good first bug".

Metadata

Metadata

Assignees

No one assigned

    Labels

    editorialChanges that do not affect how the standard is understood

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions