[whatwg/webidl] setter syntax should probably be restricted to always return undefined (Issue #1516)

emilio created an issue (whatwg/webidl#1516)

### What is the issue with the Web IDL Standard?

See https://github.com/w3c/css-houdini-drafts/issues/1142 for an example where return values are used, but probably shouldn't be.

I don't think there's any reasonable behavior if you were to specify a setter to return anything that wasn't the right hand side of the input. Right now implementations all ignore the return value.

Is there any reason something other than `undefined` is allowed in a `setter` operation?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/issues/1516
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/issues/1516@github.com>

Received on Friday, 8 August 2025 09:12:40 UTC