no errata yet
This CSS is missing from the Styling List-Item Levels example:
.sub-level {
background: #ccc;
}
The snippet of CSS in the first paragraph reads:
.highlight {font-weight:bold; font-style: italics;}
It should read:
.highlight {font-weight:bold; font-style: italic;}
The second code block reads:
' body').addClass('large');
It should read:
$('body').addClass('large');
In the second code block we mistakenly use a second argument with the parseFloat function. While a second argument for parseInt "allows us to ensure that the number is interpreted as base-10," there is no such second argument for parseFloat.
instead of octal or some other representation."
The last line in the last paragraph reads: we're changing the its text
It should read: we're changing its text
no errata yet
In the JSON example there is a ] missing at the end of the code example to close the JSON array.
In Chapter 7 when we discuss Interacting with Other Code, we recommend using the :visible pseudo-class to combine the filtering, striping, and collapsing scripts. As of jQuery 1.3.2, however, element visibility is detected differently, which renders our code ineffective. Therefore, the following line, which appears on both page 200 and page 202 should be changed:
$(this).find('tr:visible:not(:has(th))')
Instead of the :visible pseudo-class, we can use a filter function to test for the display style property:
$(this).find('tr:not(:has(th))')
.filter(function() {
return this.style.display != 'none';
})
// code continues
no errata yet
no errata yet
no errata yet
no errata yet