File:  [mozdev] / books / www / corrections.html
Revision 1.84: download - view: text, annotated - select for diffs - revision graph
Thu Mar 6 19:19:42 2003 UTC (16 years, 11 months ago) by david
Branches: MAIN
CVS tags: HEAD
updating corrections page

    1: <html><style>
    2:   .broken { color: red; }
    3:   .fixed { color: green; }
    4: </style>
    5: 
    6: <body><p><b>Corrections</b>
    7: 
    8: <p>This page contains a list of corrections to be made in the next printing of
    9: the book.  If you have suggestions for changes or find errors in the text,
   10: feel free open a <a href="bugs.html">bug</a> with a report of the problem, post a message in the User Notes 
   11: section on the chapter pages, or send a message to the <a
   12: href="mailto:reviewers@mozdev.org">reviewers@mozdev.org</a> mailing list.
   13: 
   14: <p><b>Note:</b> All errors in the text and examples are shown in <b class="broken">red</b> and all corrections are shown in <b
   15: class="fixed">green</b>.
   16: 
   17: <a name="preface"></a>
   18: <p><b>Preface</b>
   19: 
   20: <ul>
   21: 
   22: <li>On page ix: '<b class="broken">other browsers such as Galeon and Chimera</b>' has been changed to '<b class="fixed">other browsers 
   23: such as Galeon and Camino</b>'<br><br>
   24: 
   25: <li>On page xiv: '<b class="broken">http://www.oreilly.com/mozilla/</b>' has been changed
   26: to '<b class="fixed">http://www.oreilly.com/catalog/mozilla/</b>'<br><br>
   27: 
   28: <li>On page xvii: '<b class="broken">David McNamara, and Mark Hammond</b>' has been changed to '<b class="fixed">David 
   29: McNamara, Mark Hammond, Gary Frederick, and Andreas Halter</b>'<br><br>
   30: 
   31: <li>On page xvii: '<b class="broken">David Hyatt and Mike Pinkerton for the Chimera browser</b>' has been changed to '<b
   32: class="fixed">David Hyatt and Mike Pinkerton for the Camino browser</b>'<br><br>
   33: 
   34: <li>On page xvii: '<b class="broken">including Kim Steckler, Rachel Oeschger, and Priscilla, Dylan, and Devon Collins</b>' has been
   35: changed to '<b class="fixed">including Kim Steckler, Rachel Oeschger, Marjana Molan, Lia Molan King, and Priscilla, Dylan, and Devon
   36: Collins</b>'<br><br>
   37: 
   38: </ul>
   39: 
   40: 
   41: <a name="ch1"></a>
   42: <p><b>Chapter 1</b>
   43: 
   44: <ul>
   45: 
   46: <li>On page 2: In sidebar '<b class="broken">like Chimera (an ultra-fast browser that works only on Mac OS X)</b>' has been changed to 
   47: '<b class="fixed">like Camino (an ultra-fast browser that works only on Mac OS X)</b>'<br><br>
   48: 
   49: <li>On page 7: In sidebar '<b class="broken">Another project, call m/b (short for mozilla/browser), addresses shortcomings</b>' has
   50: been changed to '<b class="fixed">The Phoenix project (http://www.mozilla.org/projects/phoenix/) also addresses
   51: shortcomings</b>'<br><br>
   52: 
   53: <li>On page 7: In sidebar '<b class="broken">Some examples include Chimera (http://chimera.mozdev.org)</b>' has been changed to '<b 
   54: class="fixed">Some examples include Camino (http://www.mozilla.org/projects/camino/)</b>'<br><br>
   55: 
   56: <li>On page 7: '<b class="broken">applications web built using XPFE</b>' has been
   57: changed to '<b class="fixed">applications built using XPFE</b>'<br><br>
   58: 
   59: </ul>
   60: 
   61: 
   62: <a name="ch2"></a>
   63: <p><b>Chapter 2</b>
   64: 
   65: <ul>
   66: 
   67: <li>On page 10: Added a new sentence to the end of the 2nd paragraph of the xFly examples sidebar: '<b class="fixed">An installable version
   68: of the complete xFly application can be found at http://xfly.mozdev.org.</b>'<br><br>
   69: 
   70: <li>On page 12: '<b class="broken">&lt;window
   71: xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"  
   72: /&gt;</b>' has been changed to '<b class="fixed">&lt;window
   73: xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"&gt;</b>'<br><br>
   74: 
   75: <li>On page 14: In first code sample from Windows features section, '<b
   76: class="broken">xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"&gt;</b>' has been changed to '<b
   77: class="fixed">xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"</b>'<br><br>
   78: 
   79: <li>On page 17: '<b class="broken">selecting File > Open File > from</b>' has been
   80: changed to '<b class="fixed">selecting File > Open File from</b>'<br><br>
   81: 
   82: <li>On page 20: '<b class="broken">CenterWindoOnScreen( ) function</b>' has been changed
   83: to '<b class="fixed">CenterWindowOnScreen( ) function</b>'<br><br>
   84: 
   85: </ul>
   86: 
   87: 
   88: <a name="ch3"></a>
   89: <p><b>Chapter 3</b>
   90: 
   91: <ul>
   92: 
   93: <li>On page 34: '<b class="broken">We've packed a lot information in this chapter and it be a useful reference</b>' has been changed
   94: to '<b class="fixed">We've packed a lot of information in this chapter and it will be a useful reference</b>'<br><br>
   95: 
   96: <li>On page 35: '<b class="broken">secondLevelNodes[I] = docEl.childNodes[i];</b>' has been changed to '<b 
   97: class="fixed">secondLevelNodes[I] = docEl.childNodes[I];</b>'<br><br>
   98: 
   99: <li>On page 40: '<b class="broken">&lt;toolbarbutton id="printBtn" label="Open"
  100: oncommand="doPrint( );" /&gt</b>' has been changed to '<b class="fixed">&lt;toolbarbutton
  101: id="printBtn" label="Print" oncommand="doPrint( );" &gt</b>'<br><br>
  102: 
  103: <li>On page 51: '<b class="broken">&lt;decription&gt;The mozdev.org site [...] your own development project&lt;/decription&gt;</b>' has been 
  104: changed to '<b class="fixed">&lt;description&gt;The mozdev.org site [...] your own development project&lt;/description&gt;</b>'<br><br>
  105: 
  106: <li>On pages 58 and 59: Example 3-15 has been changed to (note the addition of spaces to seperate values)
  107: 
  108: <xmp class="fixed">
  109: <?xml version="1.0"?>
  110: <window id="hello-goodbye"
  111:     title="Hello Goodbye"
  112:     xmlns:html="http://www.w3.org/1999/xhtml"
  113:     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  114:     style="min-width:100px;min-height:100px;background-color:white;">
  115:   <broadcasterset id="broadcasterset">
  116:     <broadcaster id="cmd_hello" oncommand="alert('Hello There!');"/>
  117:   </broadcasterset>
  118:   <keyset id="keyset">
  119:     <key id="key_h" key="H" observes="cmd_hello" modifiers="accel,shift" />
  120:     <key id="key_g" key="G" command="cmd_goodbye" modifiers="accel,shift" />
  121:   </keyset>
  122:   <commandset id="commandset">
  123:     <command id="cmd_goodbye" oncommand="alert('Goodbye!');" />
  124:   </commandset>
  125:   <spacer flex="1"/>
  126:   <label value="hello/goodbye"/>
  127:   <textbox value="type ctl+shft+h"/>
  128:   <textbox value="type ctl+shft+g"/>
  129:   <spacer flex="1"/>
  130: </window>
  131: </xmp>
  132: 
  133: </ul>
  134: 
  135: 
  136: <a name="ch4"></a>
  137: <p><b>Chapter 4</b>
  138: 
  139: <ul>
  140: 
  141: <li>On page 88: '<b class="broken">these are selectors are identical</b>' has been changed to '<b class="fixed">these selectors are 
  142: identical</b>'<br><br>
  143: 
  144: <li>On page 109: '<b class="broken">The chome URL that the -moz-binding property points to</b>' has been changed to '<b
  145: class="fixed">The chrome URL that the -moz-binding property points to</b>'<br><br>
  146: 
  147: </ul>
  148: 
  149: 
  150: <a name="ch5"></a>
  151: <p><b>Chapter 5</b>
  152: 
  153: <ul>
  154: 
  155: <li>On page 113: Javascript 1.5 reference link in footnote has been changed from 
  156: '<b class="broken">http://developer.netscape.com/docs/manuals/js/core/jsref15/contents.html</b>' to
  157: '<b class="fixed">http://developer.netscape.com/docs/manuals/index.html?content=javascript.html</b>'<br><br>
  158: </li>
  159: 
  160: <li>On page 120: '<b class="broken">&lt;/script.</b>' has been changed to '<b class="fixed">&lt;/script&gt;</b>'<br><br>
  161: </li>
  162: 
  163: <li>On page 120: '<b class="broken">dump(l+'\n');</b>' has been changed to '<b class="fixed">dump(len+'\n');</b>'<br><br>
  164: </li>
  165: 
  166: <li>On page 135: Example 5-11 has been changed to
  167: <xmp class="fixed">
  168: 
  169:   <head>
  170:     <title>Sound Service Play Example</title>
  171:     <script>  
  172:       function play() { 
  173:         netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 
  174:         var sample = Components.classes["@mozilla.org/sound;1"].createInstance(); 
  175:         sample = sample.QueryInterface(Components.interfaces.nsISound); 
  176:         const SND_NETWORK_STD_CID = "@mozilla.org/network/standard-url;1";
  177:         const SND_I_URL           = "nsIURL";
  178:         const SND_URL             = new  C.Constructor(SND_NETWORK_STD_CID, SND_I_URL);
  179:         var url                   = new SND_URL();
  180:         url.spec                  = 'http://jslib.mozdev.org/test.wav';
  181:         sample.play(url);
  182:       } 
  183:     </script>  
  184:   </head>  
  185:     
  186:     <form name="form">  
  187:       <input type="button" value="Play Sound" onclick="play();">  
  188:     </form>  
  189: 
  190: </xmp>
  191: 
  192: <li>On page 137: '<b class="broken">var connection = Components.classes ["@mozilla.org/network/ldap-connection;1";</b>' 
  193:   has been changed to 
  194: '<b class="fixed">var connection = Components.classes ["@mozilla.org/network/ldap-connection;1"];</b>'<br><br>
  195: </li>
  196: 
  197: <li>On page 140: '<b class="broken">js> load(`chrome/jslib/jslib.js');</b>' has been changed to '<b class="fixed">js>
  198: load('chrome/jslib/jslib.js');</b>'<br><br>
  199: </li>
  200: 
  201:   </ul>
  202: 
  203: <a name="ch08"></a>
  204: <p><b>Chapter 8</b>
  205: 
  206: <ul>
  207: 
  208: <li>On page 211: In 2nd sentence of paragraph '<b class="broken">QueryInterace</b>' has been changed to '<b 
  209: class="fixed">QueryInterface</b>'<br><br>
  210: 
  211: <li>On page 222: In Example 8-4 '<b class="broken">mName: "a default value"</b>' has been changed to '<b class="fixed">mName: "a default 
  212: value",</b>'<br><br>
  213: 
  214: <li>On page 222: In Example 8-4
  215: 
  216:             <xmp class="broken">
  217:               this.myCID,
  218:               "My JS Component",
  219:               this.myProgID, fileSpec,
  220:               location, true, true,
  221:               type);
  222:             </xmp>            
  223: 
  224: has been changed to
  225: 
  226:             <xmp class="fixed">            
  227:               compMgr.registerComponentWithType(
  228:               this.myCID,
  229:               "My JS Component",
  230:               this.myProgID, fileSpec,
  231:               location, true, true,
  232:               type);
  233:             </xmp>            
  234: 
  235: <li>On page 222: In Example 8-4 one of the duplicate '<b class="broken">dump(" ***** Registering: Simple JS component!
  236: ****\n");</b>' lines has been removed<br><br>
  237: 
  238: <li>On page 223: In Example 8-4 one of the duplicate '<b class="broken">if (outer != null)</b>' lines has been removed<br><br>
  239: 
  240: <li>On page 239: Example 8-15 has been changed to <br/>
  241: 
  242: <xmp class="fixed">
  243: DEPTH         = ../../..
  244: topsrcdir     = ../../..
  245: srcdir        = .
  246: VPATH         = .
  247: 
  248: include $(DEPTH)/config/autoconf.mk
  249: 
  250: MODULE        = xpcom
  251: XPIDL_MODULE  = simple
  252: LIBRARY_NAME  = simple
  253: IS_COMPONENT  = 1
  254: MODULE_NAME   = nsSimpleModule
  255: REQUIRES      = string \
  256:                 xpcom \
  257:                 $(NULL)
  258: 
  259: 
  260: CPPSRCS   =              \
  261:     nsSimple.cpp         \
  262:     nsSimpleModule.cpp   \
  263:     $(NULL)
  264: 
  265: XPIDLSRCS = nsISimple.idl
  266: 
  267: include $(topsrcdir)/config/config.mk
  268: 
  269: LIBS    +=        \
  270:     $(XPCOM_LIBS) \
  271:     $(NSPR_LIBS)  \
  272:     $(NULL)
  273: 
  274: include $(topsrcdir)/config/rules.mk
  275: 
  276: EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS)
  277: 
  278: install:: $(TARGETS)
  279: </xmp>
  280: 
  281: </ul>
  282: 
  283: <a name="ch9"></a>
  284: <p><b>Chapter 9</b>
  285: 
  286: <ul>
  287: 
  288: <li>On page 257: In Example 9-7
  289: 
  290: <xmp class="broken">
  291: 	<triple subject="?listitem"
  292:     		predicate=" http://xfly.mozdev.org/fly-rdf#location"
  293:     		object="?location"/>
  294: </xmp>
  295: 
  296: has been changed to
  297: 
  298: <xmp class="fixed">
  299:         <triple subject="?listitem"
  300:     		predicate="fly-location#location"
  301:                 object="?location"/>
  302: </xmp>
  303: 
  304: </ul>
  305: 
  306: <a name="ch10"></a>
  307: <p><b>Chapter 10</b>
  308: 
  309: <ul>
  310: 
  311: <li>On page 280: In Table 10-3 '<b class="broken">Mostly used for retrieving, datasources, resources, and literals.</b>' has been
  312: changed to '<b class="fixed">Mostly used for retrieving datasources, resources, and literals.</b>'<br><br>
  313: 
  314: <li>On page 297: '<b class="broken">http://www.jslib.mozdev.org</b>' has been changed to '<b
  315: class="fixed">http://jslib.mozdev.org</b>'<br><br>
  316: 
  317: </ul>
  318: 
  319: 
  320: <a name="ch11"></a>
  321: <p><b>Chapter 11</b>
  322: 
  323: <ul> 
  324: <li>On page 314: In Example 11-5 and Example 11-6 '<b class="broken">var linetext =
  325: document.createTextNode(messageParagraphs[i]);</b>' has been changed to '<b class="fixed">var linetext =
  326: document.createTextNode(lines[i]);</b>'<br><br>
  327: </ul>
  328: 
  329: 
  330: <a name="ch12"></a>
  331: <p><b>Chapter 12</b>
  332: 
  333: <ul>
  334: 
  335: <li>On page 336: In Example 12-6
  336: 
  337: <xmp class="broken">
  338:  print `  <checkbox label="%s" />' % form['op1'].value
  339:  print `  <checkbox label="%s" />' % form['op2'].value
  340:    print `  <checkbox label="%s" />' % form['op3'].value
  341: </xmp>
  342: 
  343: has been changed to (note the difference in indentation and in using a single quote versus a backtick)
  344: 
  345: <xmp class="fixed">
  346:    print '  <checkbox label="%s" />' % form['op1'].value
  347:    print '  <checkbox label="%s" />' % form['op2'].value
  348:    print '  <checkbox label="%s" />' % form['op3'].value
  349: </xmp>
  350: 
  351: <!--
  352: <li>On page 339: A new 'Certificate Authorities and Digital
  353: Signatures' section is being written with drafts available on <a
  354: href="http://certs.mozdev.org">http://certs.mozdev.org</a><br><br>
  355: </li>
  356: -->
  357: 
  358: </ul>
  359: 
  360: 
  361: <a name="appa"></a>
  362: <p><b>Appendix A</b>
  363: 
  364: <ul>
  365: 
  366: <li>On page 365: '<b class="broken">http://www.mozilla.org/source.tml</b>' has been changed to '<b
  367: class="fixed">http://www.mozilla.org/source.html</b>'<br><br>
  368: 
  369: </ul>
  370: 
  371: 
  372: <a name="index"></a>
  373: <p><b>Index</b>
  374: 
  375: <ul>
  376: 
  377: <li>On page 437: '<b class="broken">Chimera, 2</b>' has been changed to '<b class="fixed">Camino, 2</b>'<br><br>
  378: 
  379: </ul>
  380: 
  381: 
  382: <br><br>
  383: 
  384: <!-- ?php require(NOTES); ? -->
  385: <?php $post_to_list=NO; $author='reviewers@mozdev.org'; $target_page='corrections'; require(NOTES); ?>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>