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 21043 - Use an optional NamedConstructor argument for HTMLAudioElement
Summary: Use an optional NamedConstructor argument for HTMLAudioElement
Status: CLOSED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 21050
  Show dependency treegraph
 
Reported: 2013-02-19 05:42 UTC by Ehsan Akhgari [:ehsan]
Modified: 2013-04-15 21:38 UTC (History)
6 users (show)

See Also:


Attachments

Description Ehsan Akhgari [:ehsan] 2013-02-19 05:42:40 UTC
This is what the spec currently says:

[NamedConstructor=Audio(),
 NamedConstructor=Audio(DOMString src)]
interface HTMLAudioElement : HTMLMediaElement {};

However, the following equivalent IDL is simpler:

[NamedConstructor=Audio(optional DOMString src)]
interface HTMLAudioElement : HTMLMediaElement {};
Comment 1 Edward O'Connor 2013-02-19 19:22:19 UTC
Ms2ger, we generally clone (not move) bugs between the HTML WG/HTML5 spec and WHATWG/HTML specs. I'll leave this one here and clone it back to where it started.
Comment 2 Ehsan Akhgari [:ehsan] 2013-04-12 19:06:36 UTC
Hrm, not sure what WFM means here :)
Comment 3 Ms2ger 2013-04-12 19:18:14 UTC
The spec currently says:

[NamedConstructor=Audio(optional DOMString src)]

http://www.whatwg.org/html/#the-audio-element
Comment 4 Ehsan Akhgari [:ehsan] 2013-04-12 19:23:52 UTC
Oh, right, sorry I missed that!
Comment 5 Ian 'Hixie' Hickson 2013-04-15 21:38:09 UTC
Yeah I mark bugs WORKSFORME when something else resolved the problem (e.g. I fixed another bug, or just ran across it independently or based on some comment someone made in e-mail or IRC or whatever), so as to not imply that there's a specific patch that one can look for which I made for this bug specifically (which is what I use FIXED for generally).