- From: Krzysztof Kotowicz <notifications@github.com>
- Date: Fri, 26 Jan 2024 05:39:58 -0800
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 26 January 2024 13:40:05 UTC
@koto commented on this pull request.
> @@ -10496,6 +10504,40 @@ 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>".
+
+A type annotated with the [{{StringContext}}] extended attribute must not appear in a construct
+that is not a [=regular attribute=] or a [=regular operation=]. A type annotated with the [{{StringContext}}]
Resolving, since we chose the option 1 here in the end.
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/841#discussion_r1467666637
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/webidl/pull/841/review/1845774684@github.com>
Received on Friday, 26 January 2024 13:40:05 UTC