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

Define definition conventions #882

Merged
merged 10 commits into from
May 16, 2020
Merged

Define definition conventions #882

merged 10 commits into from
May 16, 2020

Conversation

annevk
Copy link
Member

@annevk annevk commented May 9, 2020

...

Helps with #730.


Preview | Diff

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other places to update:

  • "To invoke the toJSON() operation of the Transaction interface, run the following steps:"
  • "Thus, prose is required to explain the stringification behavior, such as the following paragraph:" we didn't define a convention here, but maybe we should

@annevk annevk marked this pull request as ready for review May 11, 2020 17:03
@annevk annevk closed this May 11, 2020
@annevk annevk reopened this May 11, 2020
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit unsure about introducing the separate concept of "getter description" vs. "getter steps". Maybe instead a phrasing like

The getter steps of an attribute attr should be introduced using text of the form "The ...", or text of the form "The ..." followed by an inline description.

index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
Copy link
Member

@marcoscaceres marcoscaceres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks ok to me.

@annevk
Copy link
Member Author

annevk commented May 12, 2020

There's still a number of inconsistencies here with regard to whether or not this is explicitly passed in. If someone more familiar with all this could add fixup commits that'd be appreciated or we could leave them as existing issues and file a follow-up.

@domenic
Copy link
Member

domenic commented May 12, 2020

I gave it a shot; please take a look!

@annevk
Copy link
Member Author

annevk commented May 13, 2020

This looks great to me. @EdgarChen and @TimothyGu interested in giving this a final review?

index.bs Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
@TimothyGu
Copy link
Member

Nice cleanups :)

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch on the other places to use "method steps", @annevk. I fixed them further by always passing a this value, and using list notation for the argument lists.

index.bs Outdated Show resolved Hide resolved
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed another commit with some minor consistency fixes, but still LGTM.

@annevk annevk merged commit ea3af2c into master May 16, 2020
@annevk annevk deleted the annevk/conventions branch May 16, 2020 04:33
domenic added a commit to whatwg/streams that referenced this pull request Jul 27, 2020
ricea pushed a commit to whatwg/streams that referenced this pull request Jul 28, 2020
yutakahirano pushed a commit to yutakahirano/streams that referenced this pull request Jun 3, 2021
rakuco added a commit to rakuco/wake-lock that referenced this pull request Nov 5, 2021
Aligns with whatwg/webidl#882:
- Describe getters as "The attr getter steps are [...]".
- Describe methods as "The myMethod(arg) method steps are [...]".
rakuco added a commit to rakuco/battery that referenced this pull request Nov 5, 2021
Aligns with whatwg/webidl#882:
- Describe getters as "The attr getter steps are [...]".
- Describe methods as "The myMethod(arg) method steps are [...]".
rakuco added a commit to w3c/battery that referenced this pull request Nov 5, 2021
…rs. (#49)

Aligns with whatwg/webidl#882:
- Describe getters as "The attr getter steps are [...]".
- Describe methods as "The myMethod(arg) method steps are [...]".
rakuco added a commit to w3c/screen-wake-lock that referenced this pull request Dec 7, 2021
…rs. (#330)

Aligns with whatwg/webidl#882:
- Describe getters as "The attr getter steps are [...]".
- Describe methods as "The myMethod(arg) method steps are [...]".
rakuco added a commit to rakuco/sensors that referenced this pull request Dec 13, 2021
- Use Web IDL's definition conventions for methods and
  getters (whatwg/webidl#882):
  - Describe getters as "The attr getter steps are [...]".
  - Describe methods as "The myMethod(arg) method steps are [...]".

- Refer to [=this=] as defined in Web IDL rather than a concept that was not
  defined anywhere.

- Use [=this=] rather than the `sensor_instance` variable where possible, as
  the latter was not defined anywhere.

- When invoking the "notify error" abstract operation, pass the arguments in
  the order expected by the operation.
rakuco added a commit to rakuco/sensors that referenced this pull request Dec 13, 2021
- Use Web IDL's definition conventions for methods and
  getters (whatwg/webidl#882):
  - Describe getters as "The attr getter steps are [...]".
  - Describe methods as "The myMethod(arg) method steps are [...]".

- Refer to [=this=] as defined in Web IDL rather than a concept that was not
  defined anywhere.

- Use [=this=] rather than the `sensor_instance` variable where possible, as
  the latter was not defined anywhere.

- When invoking the "notify error" abstract operation, pass the arguments in
  the order expected by the operation.
rakuco added a commit to rakuco/sensors that referenced this pull request Dec 13, 2021
- Use Web IDL's definition conventions for methods and
  getters (whatwg/webidl#882):
  - Describe getters as "The attr getter steps are [...]".
  - Describe methods as "The myMethod(arg) method steps are [...]".

- Refer to [=this=] as defined in Web IDL rather than a concept that was not
  defined anywhere.

- Use [=this=] rather than the `sensor_instance` variable where possible, as
  the latter was not defined anywhere.

- When invoking the "notify error" abstract operation, pass the arguments in
  the order expected by the operation.
rakuco added a commit to rakuco/ambient-light that referenced this pull request May 27, 2022
Aligns with whatwg/webidl#882 and uses the format "The _attr_ getter steps
are [...]".
miketaylr pushed a commit to miketaylr/ambient-light that referenced this pull request Oct 18, 2022
Aligns with whatwg/webidl#882 and uses the format "The _attr_ getter steps
are [...]".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants