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 5979 - unclear whether new Audio(url) should throw
Summary: unclear whether new Audio(url) should throw
Status: CLOSED WORKSFORME
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-21 15:31 UTC by Simon Pieters
Modified: 2010-10-04 13:55 UTC (History)
3 users (show)

See Also:


Attachments

Description Simon Pieters 2008-08-21 15:31:14 UTC
The spec says:

"Two constructors are provided for creating HTMLAudioElement objects (in addition to the factory methods from DOM Core such as createElement()): Audio() and Audio(url). When invoked as constructors, these must return a new HTMLAudioElement object (a new audio element). If the src argument is present, the object created must have its src content attribute set to the provided value, and the user agent must invoke the load() method on the object before returning."

If the load() method raises an exception, should that exception be reraised by the Audio constructor or should it be ignored?

(Editorial: the argument is called "url" but is referred to as "src".)
Comment 1 Ian 'Hixie' Hickson 2008-10-15 09:52:18 UTC
delaying this; it may be that load() will stop throwing exceptions, making this moot.
Comment 2 Ian 'Hixie' Hickson 2008-12-25 02:42:54 UTC
This is moot now, the load() method no longer ever throws an exception.