Skip to content

Commit

Permalink
Meta: fix markup now that Bikeshed supports mixins (#499)
Browse files Browse the repository at this point in the history
References #450.
  • Loading branch information
tobie committed Dec 15, 2017
1 parent 2953a97 commit f4558f2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions index.bs
Expand Up @@ -1237,7 +1237,7 @@ that declares state and behavior that can be [=included=] by one or more [=inter
and that are exposed by objects that implement an [=interface=]
that [=includes=] the [=interface mixin=].

<pre class="webidl" class="syntax">
<pre highlight="webidl" class="syntax">
interface mixin identifier {
/* mixin_members... */
};
Expand Down Expand Up @@ -1273,7 +1273,7 @@ All of the [=interface mixin member|members=] that appear on each of the [=parti
are considered to be [=members=] of the [=interface mixin=] itself,
and—by extension—of the [=interfaces=] that [=include=] the [=interface mixin=].

<pre class="webidl" class="syntax">
<pre highlight="webidl" class="syntax">
interface mixin <mark>SomeMixin</mark> {
/* mixin_members... */
};
Expand All @@ -1300,7 +1300,7 @@ must additionally include the [=interface mixin member|members] of [=interface m
(identified by the second identifier).
[=Interface=] |I| is said to <dfn>include</dfn> [=interface mixin=] |M|.

<pre class="webidl" class="syntax">
<pre highlight="webidl" class="syntax">
interface_identifier includes mixin_indentifier;
</pre>

Expand Down Expand Up @@ -1343,7 +1343,7 @@ No [=extended attributes=] defined in this specification are applicable to [=inc
<code class="idl">Observable</code>'s [=interface mixin member|members=]
are always included on objects implementing <code class="idl">Entry</code>.

<pre class="webidl">
<pre highlight="webidl">
interface Entry {
readonly attribute unsigned short entryType;
// ...
Expand Down Expand Up @@ -1414,7 +1414,7 @@ you might consider using a [=partial interface=] instead.

For example, instead of:

<pre class="webidl">
<pre highlight="webidl">
interface mixin WindowSessionStorage {
readonly attribute Storage sessionStorage;
};
Expand All @@ -1423,7 +1423,7 @@ For example, instead of:

do:

<pre class="webidl">
<pre highlight="webidl">
partial interface Window {
readonly attribute Storage sessionStorage;
};
Expand All @@ -1436,7 +1436,7 @@ across both window and worker contexts.

For example, instead of the common but verbose:

<pre class="webidl">
<pre highlight="webidl">
interface mixin GlobalCrypto {
readonly attribute Crypto crypto;
};
Expand All @@ -1447,7 +1447,7 @@ For example, instead of the common but verbose:

you can extend the {{WindowOrWorkerGlobalScope}} [=interface mixin=] using a [=partial interface mixin=]:

<pre class="webidl">
<pre highlight="webidl">
partial interface mixin WindowOrWorkerGlobalScope {
readonly attribute Crypto crypto;
};
Expand Down Expand Up @@ -10026,7 +10026,7 @@ that does specify [{{SecureContext}}].
with one [=operation=] that is executable from all
contexts, and two which are executable only from secure contexts.

<pre class="webidl">
<pre highlight="webidl">
[Exposed=Window]
interface PowerfulFeature {
// This call will succeed in all contexts.
Expand Down Expand Up @@ -10265,7 +10265,7 @@ must not have a [=regular attribute=] or

For example, the following is disallowed:

<pre class="webidl">
<pre highlight="webidl">
[Exposed=Window]
interface A1 {
[Unforgeable] readonly attribute DOMString x;
Expand Down

0 comments on commit f4558f2

Please sign in to comment.