This text is shoddy, in comparison to other O'Reilly titles and earlier editions of this title. So much so that it seems rushed to print.
The description of the Microsoft IE event handling, in chapter 17, is simply wrong. Not typos, just wrong. In my version IE version 6, event handlers registered with addEvent *are* called with the triggering event as an argument, contrary to the text and examples. Specifically, the IE-specific portion of the
"portableEventHandler" code at the bottom of page 411 is never called because "e" is never empty. I wasted far more time than I should have because I relied on this behavior in writing my own event handling code.
Similarly, the "Form Verification Example", on pp 451-455, doesn't work in an xhtml strict environment. In the overly-brief section on the doctype tag (page 366), no mention is made of the impact on javascript of specifying "strict. The various html attributes ("required", "pattern", etc) will properly cause a strict w3c validator to declare a violation.
Although I submitted errata reports to this website, I've received no response and no indication that they were ever received -- never mind acted on.
This is an expensive ($49.99) paperback, and I expect more than I got. Stick with the 4th edition.
|