-
Notifications
You must be signed in to change notification settings - Fork 59
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
Properly specify the constructor algorithm and internal slots for SensorErrorEvent #426
Comments
I've been confused about this before too, and I think the current text is fine as-is. The constructor algorithm is actually specified in the DOM spec:
which also takes care of initializing the As for the description of the attribute itself, I'm following the style used by the WHATWG specs as well as e.g. AppHistory:
@domenic is this the recommended style or is it better to have internal slots for the attributes and follow the more usual "the |
Yeah, good question. Events are an unfortunate and confusing exception to the usual rules; we generally fudge them, even in recent specs, as @rakuco points out. So I think your current draft for (Although, separately, it looks like a mistake to have |
Related to w3c#426. - Refer to Event's constructor steps to describe how SensorErrorEvent is initialized and avoid confusion in the future. - Instead of having a separate session for SensorErrorEvent.error, just have a paragraph with the kind of boilerplate description that specs like DOM, WebSockets and App History.
We should properly specify the constructor algorithm and internal slots for
SensorErrorEvent
:https://www.w3.org/TR/generic-sensor/#the-sensor-error-event-interface
The text was updated successfully, but these errors were encountered: