[Bug 16386] New: Issue in example provided for es-sequence in WebIDL.

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

           Summary: Issue in example provided for es-sequence in WebIDL.
           Product: WebAppsWG
           Version: unspecified
          Platform: PC
               URL: http://dev.w3.org/2006/webapi/WebIDL/#es-sequence
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebIDL
        AssignedTo: cam@mcc.id.au
        ReportedBy: rgf748@motorola.com
         QAContact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, public-script-coord@w3.org


In the example given on link http://dev.w3.org/2006/webapi/WebIDL/#es-sequence
there the example illustrates the ECMAScript implementation.
Here

// This evaluates to false.
canvas.getSupportedImageCodecs() == canvas.getSupportedImageCodecs();

Should be 
// This evaluates to true.
canvas.getSupportedImageCodecs()[0] == canvas.getSupportedImageCodecs();

Else
// This evaluates to false.
supportedImageCodecs[0] == canvas.getSupportedImageCodecs();

-- 
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 March 2012 09:30:30 UTC