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 21044 - HTMLImageElement's constructor should use optional arguments
Summary: HTMLImageElement's constructor should use optional arguments
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-19 09:05 UTC by Ms2ger
Modified: 2013-03-14 00:33 UTC (History)
4 users (show)

See Also:


Attachments

Description Ms2ger 2013-02-19 09:05:58 UTC
+++ This bug was initially created as a clone of Bug #20554 +++

HTMLImageElement's constructor is currently defined as:

[NamedConstructor=Image(),
 NamedConstructor=Image(unsigned long width),
 NamedConstructor=Image(unsigned long width, unsigned long height)]
interface HTMLImageElement : HTMLElement {
...
};

It can probably simplified like this:

[NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
interface HTMLImageElement : HTMLElement {
...
};
Comment 1 contributor 2013-03-14 00:33:49 UTC
Checked in as WHATWG revision r7755.
Check-in comment: Clean up more IDL since WebIDL now supports better ways to say this
http://html5.org/tools/web-apps-tracker?from=7754&to=7755