-
Notifications
You must be signed in to change notification settings - Fork 68
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
Define NDEFMessage's, NDEFRecord's and NDEFReadingEvent's constructors normatively #622
Comments
@beaufortfrancois this is also related to #620, as at the moment the only entry point for setting a recursion depth is |
@zolkis Do you have time to look at it? |
Not right now, unfortunately - and not until the end of next week. |
@zolkis gentle ping |
IIUC, specifying a constructor for NDEFReadingEvent is not really necessary, as the default steps for "firing an event" apply and the rest (serialNumber and message) is specified in the dispatch step. |
Should we also make explicit steps for the NDEFReader empty constructor, including the initially empty internal slots? It would just repeat information from the descriptions. By default I'd omit it, but if implementers expect having it, we can make it clear it's a trivial constructor. |
The "static" constructors for NDEFRecord and NDEFMessage would be trivial as well, since the steps to fill them up will depend on the dynamic context, specified in the Creating NDEF message section. However, here we might benefit from formal/normative steps, I am looking into what kind of text reshuffling would it cause in the spec. |
|
Note that |
There we have the problem that |
We have the following in Web IDL:
NDEFMessage
's constructor is actually supposed to do and how it is supposed to usemessageInit
.NDEFRecord
andNDEFRecordInit
here, but some of the description of what to do with some ofrecordInit
's members is in this section and the rest spread across the spec, which makes it quite confusing to follow.NDEFReadingEvent
, but the actual steps describing howreadingEventInitDict.message
leads to the creation of a newNDEFMessage
are not there.The text was updated successfully, but these errors were encountered: