webidl
webidl copied to clipboard
“Define the (static|unforgeable regular) attributes” algs say namespace is a possible argument
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.