[heycam/webidl] Allow [TreatNullAs=EmptyString] for USVString? (#340)

This is used in https://w3c.github.io/webrtc-pc/#peer-to-peer-data-api

```WebIDL
partial interface RTCPeerConnection {
    readonly attribute RTCSctpTransport? sctp;
    RTCDataChannel createDataChannel([TreatNullAs=EmptyString] USVString label,
                                     optional RTCDataChannelInit dataChannelDict);
    attribute EventHandler ondatachannel;
};
```

However, it's not allowed per Web IDL:
https://heycam.github.io/webidl/#TreatNullAs

> The `[TreatNullAs]` extended attribute must not be associated with a type that is not DOMString.

Is there a reason for this restriction?

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

Received on Tuesday, 11 April 2017 04:11:53 UTC