Re: [web-nfc] Change `toRecords()` to `records` (#362)

`toRecords()` will only work on some of the record types (TNF=1 "Sp" and TNF=4 or 5).
On the other record types it should fail.
I don't know if a property is a good way for representing that.

In that sense I like `toRecords()` since it means "I will try to parse the data payload of this record as it would be an NDEF message". That can either succeed (in a few cases) or fail (in most cases).

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

Received on Thursday, 3 October 2019 15:24:57 UTC