We try to keep our books accurate, but sometimes mistakes creep in. This page lists the errors submitted by our astute readers. If you've found a new error, please submit it.

The latest version of the book is P2.0, released almost 5 years ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

Key: Typo Tech. Error Suggestion Not a problem Next edition

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:  

(To find out what version you have, look at the copyright page, a few pages in from the front of the book. If it says (say) 'Second Printing', then here it'll be P2.0. If there are interim PDF releases in that printing, they'll be 2.1, 2.2, and so on.)

PDF Paper Description Found in Fixed in
19-20

#32136: HTML on page 19 contains one table, but all subsequent figures 2.2 and 2.3 display two tables.
--john draughn

P1.0
22-May-08
27
#38344: The english is a bit jolty generally in this book. In particular, this paragraph: Perhaps you come from a programming background with la...more...
P1.0
14-Mar-09
28

#38345: This is not what fastidious means.--Julian Leviston

P1.0
14-Mar-09
28

#34541: Grammar: in the second paragraph, "shortly in a moment" is redundant.--James Paddock

P1.0
18-Sep-08
30
#45154: result += (this.country || "); should be result +=(this.country || ""); Without the terminating quotation mark, gives an error noting such in ...more...
P2.0
26-Sep-10
33
#32248: In the syntax block that shows the definition for multiple elements, what is shown is $(ID|element...) -> [ extendedElement, ...] But I...more...
RC1.0
02-Jun-08
42
#46236: Book version May 2008 - version # 2008-5-5 "for (var index = 0, len = array.length; index < l; ++index) // your code using index he...more...
B0
14-Jan-11
53
#38847: This is actually in the "P2.0 printing, May 2008" version of the book, but that's not listed in your dropdown on the add erratum page. Anyway...more...
P1.0
12-Apr-09
66

#43111: The second method

should be

The fifth method--Martijn Bak

P2.0
06-May-10
67

#43112: The fourth addition

should be the seventh
--Martijn Bak

P2.0
06-May-10
89
#36706: Top of the page, last sentence in the paragraph, replace the second appearance of "iterator" with "accumulator. Thus, it should read, "The it...more...
P1.0
30-Dec-08
90
#43128: They’re likely to be standardized in JavaScript 2.0 (ECMAScript, 4th edition, due in 2007). Isn't this a little bit outdated? This is 2010,...more...
P2.0
07-May-10
102

#43167: I think the = sign in the examples is hard to read. It looks way too much like a - sign.
--Martijn Bak

P2.0
10-May-10
104

#37079: The code in this page has 'y' as vowel:
var md = s.match(/[aeiouy]/g);--Balaji Raghavan

P1.0
15-Jan-09
111

#43188: (in separate Java-Script files)

shouldn't this read

(into separate Java-Script files)
--Martijn Bak

P2.0
12-May-10
112
#38544: All download links to media.pragprog.com return 404. eg: media.pragprog.com/titles/cppsu/code/code/prototype/... Removing the extra 'code'...more...
P1.0
26-Mar-09
112

#43189: Prototype used to sport an extra ...

should read

Prototype used to support an extra ...
--Martijn Bak

P2.0
12-May-10
175 165

#33959: line 4: Replace '<input> with type="input"' with '<input> with type="text"'.--Mike Perz

P1.0
13-Aug-08
177

#43441: (<select multiple=multiple">)

should read

(<select multiple="multiple">)
--Martijn Bak

P2.0
25-May-10
183

#33622: The document.observe('contentloaded' should be document.observe('dom:loaded' as to be consistent with others and the 1.6 way of doing this.--Ken Collins

P1.0
07-Aug-08
233 224

#34180: The template is missing a closing curly brace } after 0.interests[2].--Daniel Ashton

P1.0
22-Aug-08
258

#32241: the correct name for the option in the Effect.Highlight is restorecolor and not revertcolor--Sergio Pereira

P1.0
31-May-08
330
#32401: The downloadable code for this book has a comment at the top of scriptaculous/autocomplete/advanced/suggestions.rhtml that does not appear in ...more...
P1.0
16-Jun-08
345
#31990: Builder shorthand methods (perhaps all builder create methods too) require the second arg to be an array of elements and not the element itsel...more...
P1.0
13-May-08