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
#### Slots with trusted values #### {#slots-with-trusted-values}
1173
1175
1174
-
This document modifies {{HTMLScriptElement}}s. Each script has:
1176
+
An {{HTMLScriptElement}} and {{SVGScriptElement}} have:
1175
1177
1176
-
: an associated string <dfn export for="HTMLScriptElement">script text</dfn>.
1178
+
: an associated string <dfn export for="HTMLScriptElement,SVGScriptElement">script text</dfn>.
1177
1179
:: A string, containing the body of the script to execute that was set
1178
1180
through a compliant sink. Equivalent to script's
1179
1181
[=child text content=]. Initially an empty string.
@@ -1207,6 +1209,8 @@ The {{HTMLScriptElement/textContent}} getter steps are:
1207
1209
1208
1210
1. Return the result of running [=get text content=] with [=this=].
1209
1211
1212
+
Note: Currently we don't add an equivalent to {{SVGScriptElement}}. See [https://github.com/w3c/trusted-types/issues/512](https://github.com/w3c/trusted-types/issues/512).
1213
+
1210
1214
#### The {{HTMLScriptElement/text}} IDL attribute #### {#the-text-idl-attribute}
1211
1215
1212
1216
Update the {{HTMLScriptElement/text}} setter steps algorithm as follows.
@@ -1249,7 +1253,9 @@ Modify the [=The text insertion mode=] algorithm as follows:
1249
1253
</dd>
1250
1254
</dl>
1251
1255
1252
-
Issue: The above algorithm doesn't account for the case when the script element's content is changed mid-parse. Implementors should ensure they protect against this case. See [https://github.com/w3c/trusted-types/issues/507](https://github.com/w3c/trusted-types/issues/507).
1256
+
Issue: The above algorithm doesn't account for the case when the script element's content is changed mid-parse. Implementors must ensure they protect against this case. See [https://github.com/w3c/trusted-types/issues/507](https://github.com/w3c/trusted-types/issues/507).
1257
+
1258
+
Issue: There's no proper definition for the processing of SVG script elements. However, implementations must apply a similar change to the processing of {{SVGScriptElement}}s.
1253
1259
1254
1260
#### Slot value verification #### {#slot-value-verification}
1255
1261
@@ -1275,6 +1281,8 @@ The first few steps of the [=prepare the script element=] algorithm are modified
1275
1281
<li>...
1276
1282
</ol>
1277
1283
1284
+
Issue: There's no proper definition for the processing of SVG script elements. However, implementations must apply a similar change to the processing of {{SVGScriptElement}}s.
1285
+
1278
1286
## Integration with DOM ## {#integration-with-dom}
1279
1287
1280
1288
Note: See [https://github.com/whatwg/dom/pull/1268](https://github.com/whatwg/dom/pull/1268) which upstreams this integration.
0 commit comments