W3C home > Mailing lists > Public > public-html-admin@w3.org > January 2013

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

From: <bugzilla@jessica.w3.org>
Date: Thu, 03 Jan 2013 04:03:07 +0000
To: public-html-admin@w3.org
Message-ID: <bug-20554-2495@http.www.w3.org/Bugs/Public/>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 3 January 2013 04:03:09 GMT