Skip to content

Commit 72ecd2c

Browse files
authored
Replace 'has type' with less confusing 'is an instance of'. (w3c#559)
See w3c#534.
1 parent e8ff92b commit 72ecd2c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/index.bs

+3-3
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ TrustedHTML objects have an associated string <dfn export for="TrustedHTML">data
398398
The value is set when the object is created, and will never change during its lifetime.
399399

400400
<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
402402
TrustedHTML object are to return the associated [=TrustedHTML/data=] value.
403403

404404
### <dfn interface>TrustedScript</dfn> ### {#trusted-script}
@@ -1028,7 +1028,7 @@ It will ensure that the Trusted Type [=enforcement=] rules were respected.
10281028
Given a {{TrustedType}} type (|expectedType|), a [=realm/global object=] (|global|),
10291029
{{TrustedType}} or a string (|input|), a string (|sink|) and a string (|sinkGroup|), run these steps:
10301030

1031-
1. If |input| has type |expectedType|, return stringified
1031+
1. If |input| is an instance of |expectedType|, return stringified
10321032
|input| and abort these steps.
10331033
1. Let |requireTrustedTypes| be the result of executing [$Does sink type require trusted types?$] algorithm,
10341034
passing |global|, and |sinkGroup|.
@@ -1042,7 +1042,7 @@ Given a {{TrustedType}} type (|expectedType|), a [=realm/global object=] (|globa
10421042

10431043
Note: This step assures that the default policy rejection will be reported, but ignored in a report-only mode.
10441044
1. Throw a TypeError and abort further steps.
1045-
1. Assert: |convertedInput| has type |expectedType|.
1045+
1. Assert: |convertedInput| is an instance of |expectedType|.
10461046
1. Return stringified |convertedInput|.
10471047

10481048
## <dfn abstract-op>Process value with a default policy</dfn> ## {#process-value-with-a-default-policy-algorithm}

0 commit comments

Comments
 (0)