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

While I appreciate the desire for a forward-looking design it seems like this discussion is getting off topic. Let's keep the discussion of low-level I/O on #238 and focus on resolving the problem of the current specification's invalid WebIDL definition of the `message` property.

The remaining question I have is whether simply defining a `json()` method on an `NDEFRecord` interface is sufficient to resolve the problem @leonhsl is having with the Blink implementation. It seems like it may be invalid to round-trip an arbitrary Javascript object through an interface like this. We may have to explicitly define how the `data` field of input `NDEFRecordInit` is cloned to create the return value of the proposed `json()` method.

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

Received on Saturday, 29 June 2019 01:11:17 UTC