File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10377,13 +10377,13 @@ for the specific requirements that the use of
10377
10377
10378
10378
<h4 id="LegacyNullToEmptyString" extended-attribute lt="LegacyNullToEmptyString" oldids="TreatNullAs">[LegacyNullToEmptyString]</h4>
10379
10379
10380
- If the [{{LegacyNullToEmptyString}}] [=extended attribute=] appears on the {{DOMString}} type, it creates a new
10381
- IDL type such that that when an ECMAScript <emu-val>null</emu-val> is converted to the IDL type, it
10382
- will be handled differently from its default handling. Instead of being stringified to
10380
+ If the [{{LegacyNullToEmptyString}}] [=extended attribute=] appears on the {{DOMString}} or {{USVString}} type,
10381
+ it creates a new IDL type such that that when an ECMAScript <emu-val>null</emu-val> is converted to the IDL type,
10382
+ it will be handled differently from its default handling. Instead of being stringified to
10383
10383
"<code>null</code>", which is the default, it will be converted to the empty string.
10384
10384
10385
10385
The [{{LegacyNullToEmptyString}}] extended attribute must not be
10386
- [=extended attribute associated with|associated with=] a type that is not {{DOMString}}.
10386
+ [=extended attribute associated with|associated with=] a type that is not {{DOMString}} or {{USVString}} .
10387
10387
10388
10388
Note: This means that even <code class="idl">DOMString?</code> must not use [{{LegacyNullToEmptyString}}], since
10389
10389
<emu-val>null</emu-val> is a valid value of that type.
You can’t perform that action at this time.
0 commit comments