[Bug 24213] New: MediaKeyNeededEvent's "type" attribute conflicts with Event's "type" attribute

https://www.w3.org/Bugs/Public/show_bug.cgi?id=24213

            Bug ID: 24213
           Summary: MediaKeyNeededEvent's "type" attribute conflicts with
                    Event's "type" attribute
           Product: HTML WG
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Encrypted Media Extensions
          Assignee: adrianba@microsoft.com
          Reporter: ddorwin@google.com
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-media@w3.org

The current definition of MediaKeyNeededEvent [1] includes an attribute named
"type", which provides the value to pass to createSession()'s "type" parameter
[2]. The problem is that Event [3], which MediaKeyNeededEvent inherits from,
also has a "type" attribute that means something very different.

We need to rename the "type" attribute on MediaKeyNeededEvent and probably the
createSession() parameter as well for consistency.

Background:
* "type" was originally selected as the parameter name because it is similar to
the same parameter in canPlayType().
* The "type" attribute was later added in bug 19096.

[1]
https://dvcs.w3.org/hg/html-media/raw-file/default/encrypted-media/encrypted-media.html#dom-mediakeyneededevent
[2]
https://dvcs.w3.org/hg/html-media/raw-file/default/encrypted-media/encrypted-media.html#dom-createsession
[3] https://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#event

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Monday, 6 January 2014 18:17:15 UTC