Re: [web-nfc] Fix #396: add section for local type record (#451)

In the last commit, a few changes were necessary.
Since the checks added for local and external types and they could not be added to the "switch on recordType" step, the create algorithm was modified:
- id was moved in front, so that the switch could return the "map ... to NDEF" steps
- the "map ... to NDEF" steps received another parameter, |ndef|
- check for external type added
- check for local type added

Then the "create NDEF record" steps were factored out to make it more modular.
Some white-space moving was done so that the "map ... to NDEF" algorithms are subsections to "create NDEF message".


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

Received on Friday, 6 December 2019 13:00:12 UTC