Re: [whatwg/webidl] Propagate a type's extended attributes to a nullable inner type (PR #1624)

saschanaz left a comment (whatwg/webidl#1624)

By forcing I was thinking about "this extended attribute is valid only on ..." type of thing rather than forcing syntactically. That should be doable.

> This means that in an argument `[AttrForArg, AttrForType] Type? x`, `[AttrForArg, AttrForType]` _cannot_ bind tighter than `?`, because `AttrForArg` needs to apply to the whole argument.

It can be `[AttrForArg] ([AttrForType] Type)? x` right? Yes it's kinda awkward to read, but maybe less ambiguous?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1624#issuecomment-5219575712
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/pull/1624/c5219575712@github.com>

Received on Friday, 7 August 2026 16:31:05 UTC