[encrypted-media] `TypeError` is not a DOMException.

ddorwin has just created a new issue for 
https://github.com/w3c/encrypted-media:

== `TypeError` is not a DOMException. ==
The spec currently contains statements like the following:
>return a promise rejected with a new DOMException whose name is 
TypeError.

However, as [pointed 
out](https://github.com/w3c/encrypted-media/issues/122#issuecomment-154656652)
 by @domenic, `TypeError` is a [simple 
exception](https://heycam.github.io/webidl/#dfn-simple-exception).

Thus, the above text should be:
>return a promise rejected with a newly 
[created](https://heycam.github.io/webidl/#dfn-exception-create) 
TypeError.

(Issue #122 tracks potential streamlining of this text for all 
exceptions.)

Also, https://w3c.github.io/encrypted-media/#exceptions should be 
updated to not assume DOMExceptions.

Please view or discuss this issue at 
https://github.com/w3c/encrypted-media/issues/138 using your GitHub 
account

Received on Thursday, 10 December 2015 21:44:28 UTC