@@ -11151,8 +11151,15 @@ Note: The HTML Standard defines how the validation is performed. [[!HTML]]
11151
11151
1. If the argument at index |i| is declared with a [=optional argument/default value=],
11152
11152
then append to |values| that default value.
11153
11153
1. Otherwise, append to |values| the special value “missing”.
11154
- 1. Otherwise, append to |values| the result of [=converted to an IDL value|converting=]
11155
- |V| to IDL type |type|.
11154
+ 1. Otherwise:
11155
+ 1. If |type| is an IDL type [=extended attribute associated with|associated with=] the
11156
+ [{{StringContext}}] extended attribute, then set |V| to the result of [=validate the string in context=], passing
11157
+ [=this=], |V|, the {{StringContext}} extended attribute [=identifier=], and the [=identifier=]
11158
+ of the [{{StringContext}}] extended attribute [=related construct=].
11159
+
11160
+ Note: That algorithm may [=JavaScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
11161
+ 1. Append to |values| the result of [=converted to an IDL value|converting=]
11162
+ |V| to IDL type |type|.
11156
11163
1. Set |i| to |i| + 1.
11157
11164
1. If |i| = |d|, then:
11158
11165
1. Let |V| be |args|[|i|].
@@ -11351,8 +11358,15 @@ Note: The HTML Standard defines how the validation is performed. [[!HTML]]
11351
11358
1. If the argument at index |i| is declared with a [=optional argument/default value=],
11352
11359
then append to |values| that default value.
11353
11360
1. Otherwise, append to |values| the special value “missing”.
11354
- 1. Otherwise, append to |values| the result of
11355
- [=converted to an IDL value|converting=] |V| to IDL type |type|.
11361
+ 1. Otherwise:
11362
+ 1. If |type| is an IDL type [=extended attribute associated with|associated with=] the
11363
+ [{{StringContext}}] extended attribute, then set |V| to the result of [=validate the string in context=], passing
11364
+ [=this=], |V|, the {{StringContext}} extended attribute [=identifier=], and the [=identifier=]
11365
+ of the [{{StringContext}}] extended attribute [=related construct=].
11366
+
11367
+ Note: That algorithm may [=JavaScript/throw=] a <l spec=ecmascript>{{TypeError}}</l>.
11368
+ 1. Append to |values| the result of [=converted to an IDL value|converting=]
11369
+ |V| to IDL type |type|.
11356
11370
1. Set |i| to |i| + 1.
11357
11371
1. While |i| is less than the number of arguments |callable| is declared to take:
11358
11372
1. If |callable|'s argument at index |i| is declared with a [=optional argument/default value=],
0 commit comments