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 12187 - should drawImage throw for dw/dh==0?
Summary: should drawImage throw for dw/dh==0?
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML Canvas 2D Context (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-25 16:27 UTC by contributor
Modified: 2011-08-04 05:03 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2011-02-25 16:27:45 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html
Section: http://www.whatwg.org/specs/web-apps/current-work/complete.html#images

Comment:
should drawImage throw for dw/dh==0?

Posted from: 91.181.186.46 by ms2ger@gmail.com
Comment 1 Ian 'Hixie' Hickson 2011-05-05 08:08:04 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: No, why would it? Is this a trick question?
Comment 2 Ms2ger 2011-05-06 12:05:20 UTC
Not sure what I thought when I filed this bug (it's been a while), but I noticed now that the domintro box states

> If the numeric arguments don't make sense (e.g. the destination is a 0×0
> rectangle), throws an INDEX_SIZE_ERR exception.

whereas the normative text requires this when the *source* is 0×0. It seems like either would likely be a mistake by the author, where debugging could be helped by an exception, though.

> Is this a trick question?

Of course it is. Otherwise I wouldn't have asked.
Comment 3 Ian 'Hixie' Hickson 2011-05-06 20:23:40 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Yeah that non-normative text is wrong. FIxed.
Comment 4 contributor 2011-05-06 20:24:16 UTC
Checked in as WHATWG revision r6107.
Check-in comment: fix domintro block
http://html5.org/tools/web-apps-tracker?from=6106&to=6107
Comment 5 Michael[tm] Smith 2011-08-04 05:03:33 UTC
mass-move component to LC1