File:  [mozdev] / books / www / corrections.html
Revision 1.73: download - view: text, annotated - select for diffs - revision graph
Fri Feb 7 21:20:17 2003 UTC (17 years, 2 months ago) by david
Branches: MAIN
CVS tags: HEAD
adding correction

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

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