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

Change Badge from interface to namespace #38

Merged
merged 3 commits into from
Jul 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,25 +152,25 @@ <h2>
</section>
<section data-dfn-for="Badge">
<h2>
<code>Badge</code> interface
<code>Badge</code> namespace
</h2>
<pre class="idl">
[Exposed=(Window)]
interface Badge {
static void set(optional [EnforceRange] unsigned long long contents);
static void clear();
namespace Badge {
void set(optional [EnforceRange] unsigned long long contents);
void clear();
};
</pre>
<p>
The <dfn>Badge</dfn> interface provides methods for setting and
The <dfn>Badge</dfn> namespace provides functions for setting and
clearing the application badge indicator.
</p>
<section>
<h3>
<dfn>set()</dfn> method
<dfn>set()</dfn> function
</h3>
<p>
When the <code>set()</code> method is called with argument
When the <code>set()</code> function is called with argument
<var>contents</var>, run the following steps:
</p>
<ol>
Expand All @@ -193,10 +193,10 @@ <h3>
</section>
<section>
<h3>
<dfn>clear()</dfn> method
<dfn>clear()</dfn> function
</h3>
<p>
When the <code>clear()</code> method is called, set the application's
When the <code>clear()</code> function is called, set the application's
badge to <a>nothing</a>.
</p>
</section>
Expand Down