[whatwg/webidl] “Define the (static|unforgeable regular) attributes” algs say namespace is a possible argument (Issue #1291)

The [define the static attributes](https://webidl.spec.whatwg.org/#define-the-static-attributes) algorithm describes its _definition_ parameter as an “interface or namespace”. Namespaces cannot have static attributes, though, and the algorithm is only ever invoked with interface definitions as _definition_ arguments, so this appears to be a mistake.

The same mistake repeats in [define the unforgeable regular attributes](https://webidl.spec.whatwg.org/#define-the-unforgeable-regular-attributes). The [`[LegacyUnforgeable]`](https://webidl.spec.whatwg.org/#LegacyUnforgeable) extended attribute isn’t applicable to attributes that are members of namespaces and the algorithm is again only invoked with interface definitions.

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

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

Received on Monday, 10 April 2023 04:41:30 UTC