Skip to content

Commit

Permalink
Improve SensorErrorEvent description.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Raphael Kubo da Costa committed Dec 16, 2021
1 parent 1919432 commit 61ce33d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1239,12 +1239,12 @@ dictionary SensorErrorEventInit : EventInit {
};
</pre>

{{SensorErrorEvent}} instances are constructed by following the steps described
in {{Event}}'s <a for="Event">constructor</a>.

### SensorErrorEvent.error ### {#sensor-error-event-error}

The {{SensorErrorEvent/error!!attribute}} getter steps are to return the value it was initialized to.

It represents the {{DOMException}} object passed to {{SensorErrorEventInit}}.
The <dfn attribute for="SensorErrorEvent">error</dfn> attribute must return the
value it was initialized to. It represents the {{DOMException}} object passed
to {{SensorErrorEventInit}}.

<h2 id="abstract-operations">Abstract Operations</h2>

Expand Down

0 comments on commit 61ce33d

Please sign in to comment.