Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sub-record example and fix idl #334

Merged
merged 1 commit into from
Sep 3, 2019
Merged

Conversation

kenchris
Copy link
Contributor

@kenchris kenchris commented Sep 3, 2019

@beaufortfrancois done!

(Support for custom sub-record types will be added soon)


Preview | Diff

@kenchris kenchris merged commit 40d7c8c into w3c:gh-pages Sep 3, 2019
newline separators).
</p>
<p>
This example shows how to read an exernal record for social posts,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: external

@@ -909,6 +909,85 @@ <h4>
setTimeout(() => controller.abort(), 3000);
</pre>
</aside>

<aside title="Read a external record with sub-records" class="example">
<p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I contest the usefulness of this vs the added complexity.
If storage efficiency is of concern, an external type with binary (e.g. CBOR) would be a yet more efficient solution, without the arbitrary conventions made down this example.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is supported by NDEF and even used in standard records like smart poster.

You can of course contest using NDEF at all (and write data directly to the tag using the type specific protocols), but hey that is what we are spec'ing.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I am reading correctly the NFC Forum Smart Poster spec, there is no word about "sub-record", only about records (of type Title, URI, Action, Icon, Size, Type). The term "sub-record" seems to be made up outside of NFC Forum, so it's an application level term from NFC point of view. Read my previous comment in that context: apps could as well choose a more efficient storage method inside the allowed NDEF records. If we expose an app-level mechanism on top of NDEF in the Web NFC spec that needs to go though the usual feature addition path: use case, issue, group discussion, PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, it definitely embeds the records and that is also defined how to do in other NFC specs. Whether we call them sub records or embedded records, I don't care.

@@ -909,6 +909,85 @@ <h4>
setTimeout(() => controller.abort(), 3000);
</pre>
</aside>

<aside title="Read a external record with sub-records" class="example">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: an

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx

chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 25, 2019
This CL adds support for reading sub records of a NDEFRecord,
i.e. NDEFRecord#toRecords().

Note: No support for writing yet.

The spec changes:
w3c/web-nfc#333
w3c/web-nfc#334
w3c/web-nfc#359

BUG=520391

Change-Id: Ic7ac74416afa8e43f5293e4ca85e538fc700f3c6
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 28, 2019
This CL adds support for reading sub records of a NDEFRecord,
i.e. NDEFRecord#toRecords().

Note: No support for writing yet.

The spec changes:
w3c/web-nfc#333
w3c/web-nfc#334
w3c/web-nfc#359

BUG=520391

Change-Id: Ic7ac74416afa8e43f5293e4ca85e538fc700f3c6
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 31, 2019
This CL adds support for reading sub records of a NDEFRecord,
i.e. NDEFRecord#toRecords().

Note: No support for writing yet.

The spec changes:
w3c/web-nfc#333
w3c/web-nfc#334
w3c/web-nfc#359

BUG=520391

Change-Id: Ic7ac74416afa8e43f5293e4ca85e538fc700f3c6
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Nov 3, 2019
This CL adds support for reading sub records of a NDEFRecord,
i.e. NDEFRecord#toRecords().

Note: No support for writing yet.

The spec changes:
w3c/web-nfc#333
w3c/web-nfc#334
w3c/web-nfc#359

BUG=520391

Change-Id: Ic7ac74416afa8e43f5293e4ca85e538fc700f3c6
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Nov 5, 2019
This CL adds support for reading sub records of a NDEFRecord,
i.e. NDEFRecord#toRecords().

Note: No support for writing yet.

The spec changes:
w3c/web-nfc#333
w3c/web-nfc#334
w3c/web-nfc#359

BUG=520391

Change-Id: Ic7ac74416afa8e43f5293e4ca85e538fc700f3c6
aarongable pushed a commit to chromium/chromium that referenced this pull request Nov 5, 2019
This CL adds support for reading sub records of a NDEFRecord,
i.e. NDEFRecord#toRecords().

Note: No support for writing yet.

The spec changes:
w3c/web-nfc#333
w3c/web-nfc#334
w3c/web-nfc#359

BUG=520391

Change-Id: Ic7ac74416afa8e43f5293e4ca85e538fc700f3c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824395
Commit-Queue: Leon Han <leon.han@intel.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712452}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Nov 5, 2019
This CL adds support for reading sub records of a NDEFRecord,
i.e. NDEFRecord#toRecords().

Note: No support for writing yet.

The spec changes:
w3c/web-nfc#333
w3c/web-nfc#334
w3c/web-nfc#359

BUG=520391

Change-Id: Ic7ac74416afa8e43f5293e4ca85e538fc700f3c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824395
Commit-Queue: Leon Han <leon.han@intel.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712452}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Nov 5, 2019
This CL adds support for reading sub records of a NDEFRecord,
i.e. NDEFRecord#toRecords().

Note: No support for writing yet.

The spec changes:
w3c/web-nfc#333
w3c/web-nfc#334
w3c/web-nfc#359

BUG=520391

Change-Id: Ic7ac74416afa8e43f5293e4ca85e538fc700f3c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824395
Commit-Queue: Leon Han <leon.han@intel.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712452}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Nov 29, 2019
…estonly

Automatic update from web-platform-tests
[webnfc] toRecords() implementation

This CL adds support for reading sub records of a NDEFRecord,
i.e. NDEFRecord#toRecords().

Note: No support for writing yet.

The spec changes:
w3c/web-nfc#333
w3c/web-nfc#334
w3c/web-nfc#359

BUG=520391

Change-Id: Ic7ac74416afa8e43f5293e4ca85e538fc700f3c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824395
Commit-Queue: Leon Han <leon.han@intel.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712452}

--

wpt-commits: 456845e6c6031335bc2e9e0d37323310e6dac2c3
wpt-pr: 19881
xeonchen pushed a commit to xeonchen/gecko that referenced this pull request Nov 29, 2019
…estonly

Automatic update from web-platform-tests
[webnfc] toRecords() implementation

This CL adds support for reading sub records of a NDEFRecord,
i.e. NDEFRecord#toRecords().

Note: No support for writing yet.

The spec changes:
w3c/web-nfc#333
w3c/web-nfc#334
w3c/web-nfc#359

BUG=520391

Change-Id: Ic7ac74416afa8e43f5293e4ca85e538fc700f3c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824395
Commit-Queue: Leon Han <leon.han@intel.com>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712452}

--

wpt-commits: 456845e6c6031335bc2e9e0d37323310e6dac2c3
wpt-pr: 19881
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Nov 30, 2019
…estonly

Automatic update from web-platform-tests
[webnfc] toRecords() implementation

This CL adds support for reading sub records of a NDEFRecord,
i.e. NDEFRecord#toRecords().

Note: No support for writing yet.

The spec changes:
w3c/web-nfc#333
w3c/web-nfc#334
w3c/web-nfc#359

BUG=520391

Change-Id: Ic7ac74416afa8e43f5293e4ca85e538fc700f3c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824395
Commit-Queue: Leon Han <leon.hanintel.com>
Reviewed-by: Daniel Cheng <dchengchromium.org>
Reviewed-by: Reilly Grant <reillygchromium.org>
Cr-Commit-Position: refs/heads/master{#712452}

--

wpt-commits: 456845e6c6031335bc2e9e0d37323310e6dac2c3
wpt-pr: 19881

UltraBlame original commit: 1a9531f50510465f418a5ddb3756c341b44f95d6
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Nov 30, 2019
…estonly

Automatic update from web-platform-tests
[webnfc] toRecords() implementation

This CL adds support for reading sub records of a NDEFRecord,
i.e. NDEFRecord#toRecords().

Note: No support for writing yet.

The spec changes:
w3c/web-nfc#333
w3c/web-nfc#334
w3c/web-nfc#359

BUG=520391

Change-Id: Ic7ac74416afa8e43f5293e4ca85e538fc700f3c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824395
Commit-Queue: Leon Han <leon.hanintel.com>
Reviewed-by: Daniel Cheng <dchengchromium.org>
Reviewed-by: Reilly Grant <reillygchromium.org>
Cr-Commit-Position: refs/heads/master{#712452}

--

wpt-commits: 456845e6c6031335bc2e9e0d37323310e6dac2c3
wpt-pr: 19881

UltraBlame original commit: 1a9531f50510465f418a5ddb3756c341b44f95d6
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Nov 30, 2019
…estonly

Automatic update from web-platform-tests
[webnfc] toRecords() implementation

This CL adds support for reading sub records of a NDEFRecord,
i.e. NDEFRecord#toRecords().

Note: No support for writing yet.

The spec changes:
w3c/web-nfc#333
w3c/web-nfc#334
w3c/web-nfc#359

BUG=520391

Change-Id: Ic7ac74416afa8e43f5293e4ca85e538fc700f3c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1824395
Commit-Queue: Leon Han <leon.hanintel.com>
Reviewed-by: Daniel Cheng <dchengchromium.org>
Reviewed-by: Reilly Grant <reillygchromium.org>
Cr-Commit-Position: refs/heads/master{#712452}

--

wpt-commits: 456845e6c6031335bc2e9e0d37323310e6dac2c3
wpt-pr: 19881

UltraBlame original commit: 1a9531f50510465f418a5ddb3756c341b44f95d6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants