[webrtc-pc] [TreatNullAs=EmptyString] is not allowed for USVString per Web IDL

foolip has just created a new issue for https://github.com/w3c/webrtc-pc:

== [TreatNullAs=EmptyString] is not allowed for USVString per Web IDL ==
See issue https://github.com/heycam/webidl/issues/340

If there are good reasons to disallow `[TreatNullAs=EmptyString]` for USVString and the Web IDL spec does not change, then WebRTC should change instead. It's used here:

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;
};
```


Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1118 using your GitHub account

Received on Tuesday, 11 April 2017 04:12:55 UTC