W3C home > Mailing lists > Public > public-xg-htmlspeech@w3.org > April 2011

Javascript examples in draft not technically correct

From: Brook Monroe <brook.monroe@gmail.com>
Date: Sun, 27 Mar 2011 22:13:26 -0400
Message-ID: <4D8FEEC6.4080002@gmail.com>
To: public-xg-htmlspeech@w3.org
To Whom It May Concern:

The Javascript examples in 18 OCT 2010 draft of the Speech Input API 
specification appear to have been based on the idea that variables are 
block scoped in Javascript.  They are not.  Javascript is a 
function-scoped language like C.  While the script as supplied will work 
due to the leniency of the extant interpreters, the examples should be 
re-written to be correct.

Best regards,

J. Brook Monroe
Travel Solutions Custom Solution Architect, NCR
Received on Friday, 1 April 2011 11:27:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 1 April 2011 11:27:41 GMT