[Bug 15218] New: 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;

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15218

           Summary: 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;
           Product: HTML WG
           Version: unspecified
          Platform: Other
               URL: http://www.whatwg.org/specs/web-apps/current-work/#top
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P3
         Component: HTML Canvas 2D Context (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: contributor@whatwg.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


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

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Thursday, 15 December 2011 23:20:21 UTC