webidl icon indicating copy to clipboard operation
webidl copied to clipboard

“Define the (static|unforgeable regular) attributes” algs say namespace is a possible argument

Open bathos opened this issue 1 year ago • 0 comments

The 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. The [LegacyUnforgeable] extended attribute isn’t applicable to attributes that are members of namespaces and the algorithm is again only invoked with interface definitions.

bathos avatar Apr 10 '23 04:04 bathos