This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
https://dvcs.w3.org/hg/html-media/raw-file/tip/encrypted-media/encrypted-media.html#dom-setmediakeys The mediaKeys attribute could be made writable instead. That setting is not "trivial" or that it may throw an exception is not in itself reason to have a setter function, an IDL attribute setter can do the same thing. See HTMLMediaElement.controller for an analogous situation: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#dom-media-controller Here the getter is trivial but the setter does all kinds of things.
If a change is being made anyway, I'd also suggest naming the IDL attribute just keys. MediaError is error, MediaControls is controls and MediaKeys is... mediaKeys.
We discussed this a long time ago and concluded that we wanted a method. I'm not sure anything has changed to make us reconsider this. Clearly this is mostly subjective and we decided in 2012 to use a method. See bug 20337. *** This bug has been marked as a duplicate of bug 20337 ***