Open Bug 1736435 Opened 3 years ago

Considering make ObservableArray not a DistinguishableType

Categories

(Core :: DOM: Bindings (WebIDL), enhancement)

enhancement

Tracking

()

People

(Reporter: edgar, Unassigned)

Details

(spec issue: https://github.com/whatwg/webidl/issues/999#issuecomment-946090345)

per https://webidl.spec.whatwg.org/#idl-observable-array

Observable array types must only be used as the type of regular attributes defined on an interface

so it is disallowed to be an inner type of sequence, record, FrozenArray, and Promise.

If we could make ObservableArray not a DistinguishableType, but maybe a separate type just for regular attributes, we could handle the restriction in grammar level, which could make the parser implementation a bit simpler.

You need to log in before you can comment on or make changes to this bug.