Re: [web-nfc] NFCReadingEvent has an attribute with a type of dictionary? (#232)

This makes little sense to me in JavaScript. The type is `object`, with properties as described by `NDEFMessage`. Do we need to define an interface (constructible from the dictionary) just for the sake of satisfying WebIDL? 

We could do it, but I don't think we have an ambiguity for implementation on this :).

The comment also applies to all places with `attribute` definitions using dictionaries.

Alternatively, we could just say `object` for type and mention in prose what properties/dictonary are accepted. It would make the WebIDL less intuitive, though.

@anssiko? @tobie?

-- 
GitHub Notification of comment by zolkis
Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/232#issuecomment-501154282 using your GitHub account

Received on Wednesday, 12 June 2019 07:28:18 UTC