Skip to content

Editorial: align with modern IDL prose conventions#167

Merged
annevk merged 3 commits intomainfrom
annevk/idl
Apr 26, 2021
Merged

Editorial: align with modern IDL prose conventions#167
annevk merged 3 commits intomainfrom
annevk/idl

Conversation

@annevk
Copy link
Member

@annevk annevk commented Apr 22, 2021

@annevk annevk requested a review from domenic April 22, 2021 13:27
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.

Found a few things. Partially it's a question of how far you want to go in fixing.

notifications.bs Outdated
<p>The <dfn constructor for=Notification><code>Notification(title, options)</code></dfn>
constructor, when invoked, must run these steps:
<p>The
<dfn constructor for=Notification lt="Notification(title, options)"><code>new Notification(title, options)</code></dfn>
Copy link
Member

Choose a reason for hiding this comment

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

<var> around title and options

notifications.bs Outdated

<p>The static <dfn attribute for=Notification><code>maxActions</code></dfn>
attribute's getter must return the <a>maximum number of actions</a> supported.
<p>The static <dfn attribute for=Notification><code>maxActions</code></dfn> geter steps are to
Copy link
Member

Choose a reason for hiding this comment

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

geter -> getter

<a>notification</a>'s <a for=notification>badge URL</a>, <a lt="url serializer">serialized</a>, and
the empty string if there is no <a>notification</a>'s <a for=notification>badge URL</a> otherwise.
<ol>
<li><p>If there is no <a>this</a>'s <a>notification</a>'s <a for=notification>icon URL</a>, then
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps for a followup, but it'd be better if these were nullable.

notifications.bs Outdated

<p>The <dfn attribute for=Notification><code>requireInteraction</code></dfn> getter steps are to
return <a>this</a>'s <a>notification</a>'s
<a for=notification>require interaction preference flag</a>.
Copy link
Member

Choose a reason for hiding this comment

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

Probably these should be updated to be booleans? Right now it looks like you're returning a flag which isn't super well-defined (although of course any reader will know what you mean).

notifications.bs Outdated

<li><p>Set <var>action</var>'s {{NotificationAction/action}} to
<var>entry</var>'s <a for=action>name</a>.
<li><p>Set <var>action</var>'s {{NotificationAction/action}} to <var>entry</var>'s
Copy link
Member

Choose a reason for hiding this comment

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

You can use ordered map syntax here.

notifications.bs Outdated
</ol>

<li><p><a>Create a frozen array</a> from <var>frozenActions</var>.
<li><p><a>Create a frozen array</a> from <var>frozenActions</var>.
Copy link
Member

Choose a reason for hiding this comment

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

You forgot to return the result of "create a frozen array". (Preexisting problem.)

@annevk annevk merged commit a3e44ea into main Apr 26, 2021
@annevk annevk deleted the annevk/idl branch April 26, 2021 06:32
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.

2 participants