- From: Domenic Denicola <notifications@github.com>
- Date: Sat, 19 Jul 2025 21:17:24 -0700
- To: whatwg/webidl <webidl@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 20 July 2025 04:17:28 UTC
domenic left a comment (whatwg/webidl#1506) I've wanted better getter/setter syntax for some time. https://github.com/whatwg/webidl/issues/485 has some previous discussion. This issue points to some concrete benefits that might bring. Since that issue, [class accessor syntax](https://github.com/tc39/proposal-decorators?tab=readme-ov-file#class-auto-accessors) has been proposed for JS. (And even reached stage 3, although it's stuck since no implementers seem to be interested in implementing...) My proposed syntax would be something like ```webidl get DOMString innerHTML; [CEReactions] set (TrustedHTML or [LegacyNullToEmptyString] DOMString) innerHTML; accessor DOMString textContent; ``` -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/webidl/issues/1506#issuecomment-3093188408 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/webidl/issues/1506/3093188408@github.com>
Received on Sunday, 20 July 2025 04:17:28 UTC