- From: Nicolò Ribaudo <notifications@github.com>
- Date: Tue, 04 Aug 2026 07:21:43 -0700
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/webidl/pull/1624@github.com>
<!--
Thank you for contributing to the Web IDL Standard! Please describe the change you are making and complete the checklist below if your change is not editorial.
When you submit this PR, and each time you edit this comment (including checking a checkbox through the UI!), PR Preview will run and update it. As such make any edits in one go and only after PR Preview has run.
If you think your PR is ready to land, please double-check that the build is passing and the checklist is complete before pinging.
-->
This patch makes types such as `[Clamp] long?` legal, propagating the extended attribute to the inner type of the nullable type.
It relaxes the definitions of `[AllowResizable]`, `[AllowShared]`, `[Clamp]` and `[EnforceRange]` so that they can be used as such; while it leaves `[LegacyNullToEmptyString]` as is since it does not really make sense to apply it to a nullable string (since then the attribute would be a no-op, given that the null is already handled).
Closes #670.
---
My motivation for doing this is that I will need it in https://github.com/whatwg/webidl/pull/1568.
---
- [ ] At least two implementers are interested (and none opposed):
* …
* …
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
* … <!-- If these tests are tentative, link a PR to make them non-tentative. -->
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
* Chromium: …
* Gecko: …
* WebKit: …
* Deno: …
* Node.js: …
* webidl2.js: …
* widlparser: …
- [ ] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: …
- [ ] The top of this comment includes a [clear commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md) to use. <!-- If you created this PR from a single commit, Github copied its message. Otherwise, you need to add a commit message yourself. -->
(See [WHATWG Working Mode: Changes](https://whatwg.org/working-mode#changes) for more details.)
You can view, comment on, or merge this pull request online at:
https://github.com/whatwg/webidl/pull/1624
-- Commit Summary --
* Propagate a type's extended attributes to a nullable inner type
-- File Changes --
M index.bs (26)
-- Patch Links --
https://github.com/whatwg/webidl/pull/1624.patch
https://github.com/whatwg/webidl/pull/1624.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1624
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/webidl/pull/1624@github.com>
Received on Tuesday, 4 August 2026 14:21:47 UTC