[web-nfc] Definitions of NDEFMessageInit and NDEFRecordInit violates Web IDL spec (#538)

peria has just created a new issue for https://github.com/w3c/web-nfc:

== Definitions of NDEFMessageInit and NDEFRecordInit violates Web IDL spec ==
Two IDL dictionaries 'NDEFMessageInit' and 'NDEFRecordInit' are defined as following;
```
dictionary   {
  required sequence<NDEFRecordInit> records;
};
dictionary NDEFRecordInit {
  ...(snip)...
  NDEFRecordDataSource data;
};
typedef (DOMString or BufferSource or NDEFMessageInit) NDEFRecordDataSource;
```

This reference cycle violates the description "The type of a dictionary member must not include the dictionary it appears on." in [Web IDL spec](https://heycam.github.io/webidl/#idl-dictionaries)

Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/538 using your GitHub account

Received on Tuesday, 28 January 2020 15:26:24 UTC