You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: See [https://github.com/whatwg/webidl/pull/1392](https://github.com/whatwg/webidl/pull/1392).
1142
-
1143
1134
## Integration with HTML ## {#integration-with-html}
1144
1135
1145
1136
{{Window}} and {{Worker}} objects have a <dfn for="Window">trusted type policy factory</dfn>,
@@ -1278,41 +1269,6 @@ abstract operation. User agents must use the following implementation:
1278
1269
1. If |argument| is a {{TrustedScript}} object, return the value of its associated [=TrustedScript/data=].
1279
1270
1. Return ~unknown~.
1280
1271
1281
-
### Validate the string in context ### {#html-validate-the-string-in-context}
1282
-
1283
-
This specification defines the validate the string in context algorithm in [[html#integration-with-idl]].
1284
-
1285
-
When validate the string in context is invoked, with |platformObject|, |value|, |stringContext|, and |identifier| run these steps:
1286
-
1287
-
1. If |platformObject|'s [=relevant global object=] has a [=Window/trusted type policy factory=]:
1288
-
1289
-
1. Set |sink| to the result of [=concatenating=] the list « |platformObject|'s <a spec=webidl>identifier</a>, |identifier| » with `" "` as |separator|.
causes the |sink| value to be `"HTMLIFrameElement srcdoc"`.
1303
-
</div>
1304
-
1. Set |value| to the result of running the [$Get Trusted Type compliant string$] algorithm, passing the following arguments:
1305
-
* |value| as |input|,
1306
-
* |stringContext| as |expectedType|,
1307
-
* |sink| as |sink|,
1308
-
* `'script'` as |sinkGroup|,
1309
-
* |platformObject|'s [=relevant global object=] as |global|.
1310
-
1311
-
Issue: Remove hardcoding 'script' when new sink groups are specified.
1312
-
1313
-
1. If an exception was thrown, rethrow exception and abort further steps.
1314
-
1. Return |value|.
1315
-
1316
1272
## Integration with DOM ## {#integration-with-dom}
1317
1273
1318
1274
Note: See [https://github.com/whatwg/dom/pull/1258](https://github.com/whatwg/dom/pull/1258) and [https://github.com/whatwg/dom/pull/1268](https://github.com/whatwg/dom/pull/1268) which upstream this integration.
0 commit comments