This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24381 - HTMLMediaElement.setMediaKeys() appears superfluous
Summary: HTMLMediaElement.setMediaKeys() appears superfluous
Status: RESOLVED DUPLICATE of bug 20337
Alias: None
Product: HTML WG
Classification: Unclassified
Component: Encrypted Media Extensions (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Adrian Bateman [MSFT]
QA Contact: HTML WG Bugzilla archive list
Depends on:
Reported: 2014-01-24 09:50 UTC by Philip Jägenstedt
Modified: 2014-02-18 16:44 UTC (History)
3 users (show)

See Also:


Description Philip Jägenstedt 2014-01-24 09:50:40 UTC

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:

Here the getter is trivial but the setter does all kinds of things.
Comment 1 Philip Jägenstedt 2014-01-26 17:04:00 UTC
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.
Comment 2 Adrian Bateman [MSFT] 2014-02-18 16:44:09 UTC
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 ***