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 11670 - "The setTransform(a, b, c, d, e, f) method must [...] invoke the transform(a, b, c, d, e, f) method" - so if I set CanvasRenderingContext2D.prototype.transform=function(){alert()}, then calling setTransform would trigger the alert? Probably this shouldn't
Summary: "The setTransform(a, b, c, d, e, f) method must [...] invoke the transform(a,...
Status: RESOLVED WONTFIX
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-01-05 16:16 UTC by contributor
Modified: 2011-08-04 05:04 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2011-01-05 16:16:16 UTC
Specification: 
Section: http://www.whatwg.org/specs/web-apps/current-work/complete.html#transformations

Comment:
"The setTransform(a, b, c, d, e, f) method must [...] invoke the transform(a,
b, c, d, e, f) method" - so if I set
CanvasRenderingContext2D.prototype.transform=function(){alert()}, then calling
setTransform would trigger the alert? Probably this shouldn't be defined in
terms of method invocation

Posted from: 128.232.100.193
Comment 1 Ms2ger 2011-01-08 11:35:52 UTC
DOM Core has

> When a method or an attribute is said to call another method or attribute, the
> user agent must invoke its internal API for that attribute or method so that
> e.g. the author can't change the behavior by overriding attributes or methods
> with custom properties or functions in ECMAScript.

I thought it came from HTML, but it seems I was wrong. (It's been present since the time Simon was editing the spec.)
Comment 2 Ian 'Hixie' Hickson 2011-02-08 00:59:54 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: The spec says to invoke the transform() method, and links to the definition of that method; it doesn't say to [[Call]] the Function object currently assigned to the 'transform' property.
Comment 3 Michael[tm] Smith 2011-08-04 05:04:04 UTC
mass-move component to LC1