The second edition of DOM Scripting has just been released.
Let me start by clarifying: although my name appears on the cover, I wasn’t involved in this edition at all. It’s all the work of Jeffrey Sambells. The publisher—Friends of ED—asked me to write the second edition, but I just didn’t have the time available to commit to it. So it was a certain amount of trepidation that I cracked open the cover of the new release.
I’m happy to report that all the changes meet with my approval. Well, almost all the changes …the actual cover is pretty naff. Given the sort of beautiful books produced by small independent publishers like A Book Apart and Five Simple Steps, I’m always surprised by the relatively roughshod design displayed by more mainstream publishers.
Anyway, ‘though the presentation may leave something to be desired, the contents of the second edition is pretty darn good. The book has been expanded to cover three new areas:
- Libraries (with an emphasis on jQuery).
This widens the scope of the book quite a bit, but happily the emphasis remains on best practices (especially progressive enhancement).
The markup examples have been updated to use the HTML5 doctype—although occasionally the text still refers to them as XHTML documents.
I think my favourite addition to the book is the section on jQuery. It revisits many of the examples from earlier in the book and shows how they can be rewritten more succinctly with jQuery. I think that’s pretty much the ideal why to get to know a library: first understand how the underlying language works, and then find out how the library can help you save time and effort.
So all the additions to the book are beneficial, in my opinion. There’s only one thing that has been removed from the original book; the appendix of DOM methods has been replaced with an appendix of jQuery methods. That’s a bit of a shame. I’ll see about getting the original appendix published here on this site.