Re: [web-nfc] Do we want to add support for writing sub records? (#357)

TNF=2 can store any data once MIME type is also given. Since NDEFMessage may contain multiple different records with different MIME types, it doesn't make sense to allow message as payload for TNF=2.

However, it could be allowed also for TNF=5 (unknown) as opaque types without MIME type. 

Also, for TNF=6 (unchanged) we should allow message as payload if it's a chunk-record and the first record has been a tree-allowed type ( TNF=1 "Sp" or TNF=4 or TNF=5). 

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

Received on Thursday, 26 September 2019 14:43:37 UTC