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 12142 - 2d.drawImage.wrongtype partially incorrect
Summary: 2d.drawImage.wrongtype partially incorrect
Status: RESOLVED INVALID
Alias: None
Product: HTML WG
Classification: Unclassified
Component: testsuite (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ms2ger
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-20 15:06 UTC by Ms2ger
Modified: 2011-04-13 08:53 UTC (History)
2 users (show)

See Also:


Attachments

Description Ms2ger 2011-02-20 15:06:54 UTC
The test asserts that ctx.drawImage(undefined, 0, 0) throws a TypeError. However, WebIDL [1] defines that undefined must be converted to null, which then must cause a TYPE_MISMATCH_ERR to be thrown. [2]

[1] http://dev.w3.org/2006/webapi/WebIDL/#es-interface
[2] http://dev.w3.org/html5/2dcontext/#dom-context-2d-drawimage
Comment 1 Ms2ger 2011-02-20 15:19:46 UTC
Looks like I mistakenly claimed this was right in <http://www.w3.org/mid/6E2EDBA33586754AB83E7D6B3C51CD090D4BCD@TK5EX14MBXW652.wingroup.windeploy.ntdev.microsoft.com>.
Comment 3 Ms2ger 2011-04-13 08:53:00 UTC
I hear I'm wrong.