Re: [web-nfc] Add isLocal to NDEFRecord and NDEFRecordInit (#491)

https://w3c.github.io/web-nfc/#creating-ndef-record needs refactoring, from step 4.

My suggestion:

> If (isLocal) {
    if (not a payload to another record) reject and abort;
    if (is NOT valid local type) reject and abort;
    create and return the record (the current step 7)
    abort;
}
continue to handle Standardized types and external type.

-- 
GitHub Notification of comment by leonhsl
Please view or discuss this issue at https://github.com/w3c/web-nfc/pull/491#issuecomment-568853627 using your GitHub account

Received on Wednesday, 25 December 2019 07:07:19 UTC