Skip to content

Commit 550b967

Browse files
committed
Copy String context handling to attribute setter steps.
1 parent c31e59c commit 550b967

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

index.bs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6354,7 +6354,7 @@ The following extended attributes are <dfn for="extended attributes">applicable
63546354
[{{AllowShared}}],
63556355
[{{Clamp}}],
63566356
[{{EnforceRange}}],
6357-
[{{LegacyNullToEmptyString}}] and
6357+
[{{LegacyNullToEmptyString}}], and
63586358
[{{StringContext}}].
63596359

63606360

@@ -10280,7 +10280,7 @@ must be one of "<code>html</code>", "<code>script-url</code>" and "<code>script<
1028010280
[{{StringContext}}] extended attribute may only annotate a type of a [=regular attribute=] or
1028110281
a [=regular operation=] argument. A type annotated with the [{{StringContext}}]
1028210282
extended attribute must not appear in a [=read only=] attribute. The [=regular attribute=] or
10283-
a [=regular operation=] argument that the type annotated with the [{{StringContext}}] extended
10283+
[=regular operation=] argument that the type annotated with the [{{StringContext}}] extended
1028410284
attribute appears in is its <dfn>related construct</dfn>.
1028510285

1028610286
A type that is not {{DOMString}} or {{USVString}} must not be [=extended attributes associated with|associated with=]
@@ -12041,8 +12041,14 @@ in which case they are exposed on every object that [=implements=] the interface
1204112041

1204212042
<dt>Otherwise</dt>
1204312043
<dd>
12044-
|idlValue| is the result of [=converted to an IDL value|converting=] |V| to an
12045-
IDL value of |attribute|'s type.
12044+
1. If the conversion is to an IDL type [=extended attribute associated with|associated with=] the
12045+
[{{StringContext}}] extended attribute, then set |V| to the result of [=validate the string in context=], passing
12046+
[=this=], |V|, the {{StringContext}} extended attribute [=identifier=], and the [=identifier=]
12047+
of the [{{StringContext}}] extended attribute [=related construct=].
12048+
12049+
Note: That algorithm may [=JavaScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
12050+
1. |idlValue| is the result of [=converted to an IDL value|converting=] |V| to an
12051+
IDL value of |attribute|'s type.
1204612052
</dd>
1204712053
</dl>
1204812054

0 commit comments

Comments
 (0)