@@ -398,7 +398,7 @@ TrustedHTML objects have an associated string <dfn export for="TrustedHTML">data
398
398
The value is set when the object is created, and will never change during its lifetime.
399
399
400
400
<dfn method for="TrustedHTML">toJSON()</dfn> method steps and the
401
- <dfn for="TrustedHTML">stringification behavior</dfn> steps of a
401
+ <dfn dfn for="TrustedHTML">stringification behavior</dfn> steps of a
402
402
TrustedHTML object are to return the associated [=TrustedHTML/data=] value.
403
403
404
404
### <dfn interface>TrustedScript</dfn> ### {#trusted-script}
@@ -1028,7 +1028,7 @@ It will ensure that the Trusted Type [=enforcement=] rules were respected.
1028
1028
Given a {{TrustedType}} type (|expectedType|), a [=realm/global object=] (|global|),
1029
1029
{{TrustedType}} or a string (|input|), a string (|sink|) and a string (|sinkGroup|), run these steps:
1030
1030
1031
- 1. If |input| has type |expectedType|, return stringified
1031
+ 1. If |input| is an instance of |expectedType|, return stringified
1032
1032
|input| and abort these steps.
1033
1033
1. Let |requireTrustedTypes| be the result of executing [$Does sink type require trusted types?$] algorithm,
1034
1034
passing |global|, and |sinkGroup|.
@@ -1042,7 +1042,7 @@ Given a {{TrustedType}} type (|expectedType|), a [=realm/global object=] (|globa
1042
1042
1043
1043
Note: This step assures that the default policy rejection will be reported, but ignored in a report-only mode.
1044
1044
1. Throw a TypeError and abort further steps.
1045
- 1. Assert: |convertedInput| has type |expectedType|.
1045
+ 1. Assert: |convertedInput| is an instance of |expectedType|.
1046
1046
1. Return stringified |convertedInput|.
1047
1047
1048
1048
## <dfn abstract-op>Process value with a default policy</dfn> ## {#process-value-with-a-default-policy-algorithm}
0 commit comments