Updates and Corrections

The Web evolves, and books aren’t perfect. Find out what’s changed.



  • Page 39: What used to be the European Computer Manufacturers Association goes by Ecma International (Ecma, not ECMA).
  • Page 154: There should be no space before icon in the first rel example (the space between shortcut icon is correct, however). Here is the corrected version, with the correction highlighted:
    <link rel="icon" href="http://example.com/favicon.png" type="image/png" />
    <!--For Internet Explorer; no type must be specified-->
    <link rel="shortcut icon" href="http://example.com/favicon.ico" />
  • Page 214: Figures 17.7 and 17.8 have CSS that refers to div#container. They should actually refer to div#page.
  • Page 244: The colon (:) and two slashes (/) must be escaped with two back-slashes (\\) in the attribute selector, per jQuery’s documentation. Here is the correct selector for hitting external links inside of div#content, with the corrections highlighted::
    /*JavaScript inside the ready event*/
    $('div#content a[href^=http\\:\\/\\/]').addClass('ext');
  • Page 244: The CSS style declaration at the bottom of the page should refer to margin-right. Here is the corrected version, with the correction highlighted:
    ul#navigation a { margin-right: 30px; }
    ul#navigation a:hover { margin-right: 0px; }
  • That’s all for now. Find a mistake that needs to be corrected? Let me know.