Clarification on "simple event"

The following question relates to https://github.com/w3c/encrypted-media/issues/17.

The HTML Media Task Force is looking for clarification on what constitutes a "simple event".  The EME spec (https://w3c.github.io/encrypted-media/) currently defines four "simple events":  two with no attributes (keystatuseschange & waitingforkey) and two with attributes (message & encrypted).  The attributes on the latter two provide initDataType and initData necessary to handle the events.  We've seen references to "trusted events" in other places where attributes are provided.

If trusted events was more correct, we might change event handling language like this:

Queue a task to fire a simple event named encrypted at the media element. The event is of type MediaEncryptedEvent and has: initDataType = initDataType initData = initData.

To this:

Queue a task to fire a trusted event with the name encrypted, that does not bubble and is not cancelable, that uses the Event interface, and is of type MediaEncryptedEvent with the track attributes initDataType initialized to initDataType and initData initialized to initData, at the media element.

The specifics on trusted handling aren't especially relevant though.  Can anyone confirm whether a simple event may include attributes of the type discussed above?

Jerry

Received on Tuesday, 28 July 2015 16:30:45 UTC