You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah thanks, you're right. Confirmed that all named getters either: 1) have nullable return types 2) returns an empty string 3) or just throws, with some exceptions in Web Speech. I'll file an issue there.
There are two types of getter operations in the IDL world: returning null or undefined.
The first one is straightforward, it returns null when there is no item.
But the second one is surprising. Even when the return type must be DOMString, it just returns
undefined
when there is no item.Does the Web IDL spec allow this, or should this be specced? Or should it just be
(DOMString or undefined)
as it's now supported?The text was updated successfully, but these errors were encountered: