SVG Essentials

Errata for SVG Essentials

Submit your own errata for this product.


The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question Note Update



Version Location Description Submitted By Date Submitted Date Corrected
Printed
Page 8
Example 1-2

To get the SVG example to work in Firefox, I had to add the SVG namespace to the svg element: xmlns="http://www.w3.org/2000/svg" AUTHOR NOTE: Correct, but not detectable when book was written, because Firefox wasn't available then.

Anonymous   
Printed
Page 29
just after the bulleted list and before Example 3-3, add

It is also possible to use one of the color keywords listed in section 4.2 of the SVG specification at http://www.w3.org/TR/SVG/types.html#ColorKeywords, or one of the CSS 2 system color keywords as listed at http://www.w3.org/TR/REC-CSS2/ui.html#system-colors

Anonymous   
Printed
Page 39
Example 3-13 (code) lacks stroke color values so horizontal lines don't show.

Corrected code: <line x1="10" y1="15" x2="50" y2="15" style="stroke: black; stroke-linecap: butt; stroke-width: 15;"/> <line x1="10" y1="45" x2="50" y2="45" style="stroke: black; stroke-linecap: round; stroke-width: 15;"/> <line x1="10" y1="75" x2="50" y2="75" style="stroke: black; stroke-linecap: square; stroke-width: 15;"/> <!-- guide lines --> <line x1="10" y1="0" x2="10" y2="100" style="stroke: #999;"/> <line x1="50" y1="0" x2="50" y2="100" style="stroke: #999;"/>

Anonymous   
Printed
Page 42
last line before 'Specifying Colors' section

<line x1="1cm" y1="30" width="50" height="10pt"/> should be <line x1="1cm" y1="30" x2="50" y2="10pt"/>

Anonymous   
Printed
Page 45
Remove the angle brackets around the word "style" in the second

sentence under the subhead "Inline Styles."

Anonymous   
Printed
Page 64
Top and Figure 5-8

The first and second code fragments both give height="20" and width="15" with uniform scaling on each of the axes, yet Figure 5-8 shows a rectangle wider than it is high. the height and width should be height="15" and width="20" for both of those code fragments

Anonymous   
Printed
Page 84
The comments in the program at the bottom of the page should

begin with these lines: # Convert an elliptical arc parameterized for SVG to an # elliptical arc based around a central point.

Anonymous   
Printed
Page 85
2nd line in convert_from_svg function

The $phi in the second "my" line should be $pi.

Anonymous   
Printed
Page 97
last line

markerWidth="6" and markerHeight="10" should be: markerWidth="4" and markerHeight="8"

Anonymous   
Printed
Page 165
2nd last paragraph

change flood-fill-color to flood-color change flood-fill-opacity to flood-opacity

Anonymous   
Printed
Page 181
<feFlood>

change "flood-fill-color" to "flood-color" change "flood-fill-opacity" to "flood-opacity"

Anonymous   
Printed
Page 196
1st line in Example 11-18

The MIME type text/ecmascript is obsolete and should be application/ecmascript according to RFC 4329.

Anonymous   
Printed
Page 196
1st line in enlarge_circle() and shrink_circle() functions

The code "var circle = evt.getTarget();" does not work in Firefox or Opera. The code "var circle = evt.target;" works

Anonymous   
Printed
Page 198
1st line in setScale() function

The line "obj = svgDocument.getElementById..." does not work. The fix is to put this in the init() function: if (window.svgDocument == null ) { svgDocument = evt.target.ownerDocument; }

Anonymous   
Printed
Page 205
1st line in Interacting with an HTML page section

The <embed> element is nonstandard. The standard <object> element should be used instead. AUTHOR NOTE: Since the time of the book's writing, <object> has become the preferred method of including an SVG graphic in a web page.

Anonymous   
Printed
Page 210
top of page

Eliminate sentence "The numbered callouts in the example are in conceptual order, not text order."

Anonymous   
Printed
Page 218
Under "Using Perl to Convert Custom Data to SVG"

"One of these is the proprietary format developed by Earth Science Resources, Inc. for use by their ARC/INFO Geographic Information System" Should be: "One of these is the proprietary format developed by Environmental Systems Research Institute for use by their ArcInfo Geographic Information System."

Anonymous   
Printed
Page 228
Change all occurrences of "UTF8" to "UTF-8".

Anonymous   
Printed
Page 311
2nd to last paragaph

"Cross product" is a fancy way of saying "add up the productes of the coresponding entries in a row and column"... should be: "Dot product" is a fancy way of saying "add up the productes of the coresponding entries in a row and column"... All three occurrences of "cross product" should be "dot product"

Anonymous   
Printed
Page 322
title for Example F-1.

XHTML and SVG in one cocument should read: XHTML and SVG in one document

Anonymous