[Bug 20554] New: HTMLImageElement's constructor should use optional arguments

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

            Bug ID: 20554
           Summary: HTMLImageElement's constructor should use optional
                    arguments
    Classification: Unclassified
           Product: HTML WG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec
          Assignee: dave.null@w3.org
          Reporter: ehsan@mozilla.com
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-admin@w3.org,
                    public-html-wg-issue-tracking@w3.org

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 {
...
};

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

Received on Thursday, 3 January 2013 04:03:09 UTC