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 15218 - In section "Complex shapes (paths)", there is an error in the example code for isPointInPath(). In processClick(), the variable "node" is undefined. I assume that the following line should be added: var node = canvas;
Summary: In section "Complex shapes (paths)", there is an error in the example code fo...
Status: RESOLVED DUPLICATE of bug 14853
Alias: None
Product: HTML WG
Classification: Unclassified
Component: 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-12-15 20:29 UTC by contributor
Modified: 2011-12-15 22:55 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2011-12-15 20:29:17 UTC
Specification: http://dev.w3.org/html5/2dcontext/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
In section "Complex shapes (paths)", there is an error in the example code for
isPointInPath().

In processClick(), the variable "node" is undefined.

I assume that the following line should be added:

var node = canvas;

Posted from: 81.221.92.167
User agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Comment 1 Christian d'Heureuse 2011-12-15 22:55:58 UTC

*** This bug has been marked as a duplicate of bug 14853 ***