Skip to content

Commit bc7cb7a

Browse files
authored
Editorial: consolidate dictionary default values paragraphs
This makes it easier to understand what values are actually allowed as default values.
1 parent e3d0c74 commit bc7cb7a

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

index.bs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4752,11 +4752,6 @@ supplied as an argument to an [=operation=]) to an IDL dictionary. Specification
47524752
leave the members [=dictionary member/optional=] in all other cases, including when a dictionary
47534753
type is used solely as the [=return type=] of [=operations=].
47544754

4755-
[=dictionary member/Optional=] [=dictionary members=] can also be specified as having a
4756-
<dfn id="dfn-dictionary-member-default-value" for="dictionary member" export>default value</dfn>,
4757-
which is the value used by default when author code or specification text does not provide a value
4758-
for that member.
4759-
47604755
A given dictionary value of type |D| can have [=map/entries=] for each of the dictionary members
47614756
defined on |D| and on any of |D|'s [=inherited dictionaries=]. Dictionary members that are specified
47624757
as [=dictionary member/required=], or that are specified as having a
@@ -4824,9 +4819,12 @@ its [=nullable types/inner type=] must not be a [=dictionary type=].
48244819
};
48254820
</pre>
48264821

4827-
If the identifier is followed by a <span class="char">U+003D EQUALS SIGN ("=")</span>
4828-
and a value (matching <emu-nt><a href="#prod-DefaultValue">DefaultValue</a></emu-nt>),
4829-
then that gives the dictionary member its [=dictionary member/default value=].
4822+
If the identifier for an [=dictionary member/optional=] [=dictionary member=] is followed by a <span
4823+
class="char">U+003D EQUALS SIGN ("=")</span> and a value (matching <emu-nt><a
4824+
href="#prod-DefaultValue">DefaultValue</a></emu-nt>), then that gives the dictionary member its <dfn
4825+
id="dfn-dictionary-member-default-value" for="dictionary member" export>default value</dfn>, which
4826+
is the value used by default when author code or specification text does not provide a value for
4827+
that member.
48304828

48314829
<pre highlight="webidl" class="syntax">
48324830
dictionary identifier {

0 commit comments

Comments
 (0)