File:  [mozdev] / books / www / corrections.html
Revision 1.74: download - view: text, annotated - select for diffs - revision graph
Mon Feb 10 17:43:32 2003 UTC (16 years, 9 months ago) by david
Branches: MAIN
CVS tags: HEAD
updating corrections

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

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