W3C home > Mailing lists > Public > public-html@w3.org > December 2011

[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;

From: <bugzilla@jessica.w3.org>
Date: Thu, 15 Dec 2011 20:29:23 +0000
To: public-html@w3.org
Message-ID: <bug-15218-2495@http.www.w3.org/Bugs/Public/>
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

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:28 UTC