- From: Luke Warlow <notifications@github.com>
- Date: Sat, 13 Jan 2024 06:27:00 -0800
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 13 January 2024 14:27:06 UTC
@lukewarlow commented on this pull request. > @@ -10496,6 +10504,41 @@ that does specify [{{SecureContext}}]. </pre> </div> +<h4 id="StringContext" extended-attribute lt="StringContext">[StringContext]</h4> + +If the [{{StringContext}}] [=extended attribute=] appears on {{DOMString}} or {{USVString}}, it +modifies how the value is converted to the IDL type, causing additional value validation to +adhere to the context the string is used in. + +The [{{StringContext}}] extended attribute must [=takes an identifier|take an identifier=]. The [=identifier=] +must be one of "<code>html</code>", "<code>script-url</code>" and "<code>script</code>". The TrustedTypes spec as it currently is uses the TrustedXXX as the identifiers. It would be good to get clarity on whether that is correct or if this is correct? -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/webidl/pull/841#pullrequestreview-1820025435 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/webidl/pull/841/review/1820025435@github.com>
Received on Saturday, 13 January 2024 14:27:06 UTC