Annotation of books/www/corrections.html, revision 1.74

1.52      petejc      1: <style>
                      2:   .broken { color: red; }
                      3:   .fixed { color: green; }
                      4: </style>
                      5: 
1.1       david       6: <p><b>Corrections</b>
                      7: 
1.21      david       8: <p>This page contains a list of corrections to be made in the next printing of
1.19      david       9: the book.  If you have suggestions for changes or find errors in the text,
1.22      david      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
1.19      david      12: href="mailto:reviewers@mozdev.org">reviewers@mozdev.org</a> mailing list.
1.1       david      13: 
1.56      david      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>.
1.20      david      16: 
                     17: <a name="preface">
                     18: <p><b>Preface</b>
                     19: 
1.1       david      20: <ul>
1.18      david      21: 
1.51      petejc     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>
1.18      david      24: 
1.20      david      25: </ul>
                     26: 
                     27: 
                     28: <a name="ch1">
                     29: <p><b>Chapter 1</b>
                     30: 
                     31: <ul>
                     32: 
1.74    ! david      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: 
1.53      david      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>
1.18      david      42: 
1.20      david      43: </ul>
                     44: 
                     45: 
                     46: <a name="ch2">
                     47: <p><b>Chapter 2</b>
                     48: 
                     49: <ul>
                     50: 
1.57      david      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
1.58      david      52: of the complete xFly application can be found at http://xfly.mozdev.org.</b>'<br><br>
1.57      david      53: 
1.53      david      54: <li>On page 12: '<b class="broken">&lt;window
1.18      david      55: xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"  
1.53      david      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>
1.18      david      58: 
1.64      david      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>
1.18      david      62: 
1.53      david      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>
1.18      david      65: 
1.53      david      66: <li>On page 20: '<b class="broken">CenterWindoOnScreen( ) function</b>' has been changed
                     67: to '<b class="fixed">CenterWindowOnScreen( ) function</b>'<br><br>
1.19      david      68: 
1.20      david      69: </ul>
                     70: 
                     71: 
                     72: <a name="ch3">
                     73: <p><b>Chapter 3</b>
                     74: 
                     75: <ul>
                     76: 
1.67      david      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>
1.66      david      79: 
1.71      david      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: 
1.54      david      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>
1.18      david      86: 
1.65      david      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>
1.71      david      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>
1.65      david     116: 
1.20      david     117: </ul>
                    118: 
1.72      david     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: 
1.73      david     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: 
1.72      david     131: </ul>
                    132: 
                    133: 
1.26      petejc    134: <a name="ch5">
                    135: <p><b>Chapter 5</b>
                    136: 
                    137: <ul>
1.40      david     138: 
                    139: <li>On page 113: Javascript 1.5 reference link in footnote has been changed from 
1.54      david     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>
1.59      petejc    142: </li>
1.40      david     143: 
1.54      david     144: <li>On page 120: '<b class="broken">&lt;/script.</b>' has been changed to '<b class="fixed">&lt;/script&gt;</b>'<br><br>
1.59      petejc    145: </li>
1.41      david     146: 
1.54      david     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>
1.59      petejc    148: </li>
1.41      david     149: 
1.61      david     150: <li>On page 135: Example 5-11 has been changed to
                    151: <xmp class="fixed">
1.59      petejc    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); 
1.62      petejc    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);
1.59      petejc    166:       } 
                    167:     </script>  
                    168:   </head>  
                    169:   <body>  
                    170:     <form name="form">  
                    171:       <input type="button" value="Play Sound" onclick="play();">  
1.63      petejc    172:     </form>  
1.59      petejc    173:   </body>  
                    174: </html>
                    175: </xmp>
1.61      david     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>
1.59      petejc    180: </li>
1.43      david     181: 
1.54      david     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>
1.59      petejc    184: </li>
1.43      david     185: 
1.26      petejc    186: </ul>
                    187: 
1.24      petejc    188: <a name="ch08">
                    189: <p><b>Chapter 8</b>
                    190: 
                    191: <ul>
1.44      david     192: 
1.54      david     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>
1.44      david     195: 
1.54      david     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>
1.44      david     198: 
1.47      david     199: <li>On page 222: In Example 8-4
1.45      david     200: 
1.54      david     201:             <xmp class="broken">
1.33      petejc    202:               this.myCID,
                    203:               "My JS Component",
                    204:               this.myProgID, fileSpec,
                    205:               location, true, true,
                    206:               type);
                    207:             </xmp>            
1.45      david     208: 
1.47      david     209: has been changed to
1.45      david     210: 
1.54      david     211:             <xmp class="fixed">            
1.33      petejc    212:               compMgr.registerComponentWithType(
                    213:               this.myCID,
                    214:               "My JS Component",
                    215:               this.myProgID, fileSpec,
                    216:               location, true, true,
                    217:               type);
                    218:             </xmp>            
1.45      david     219: 
1.68      david     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>
1.45      david     222: 
1.54      david     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>
1.45      david     224: 
                    225: <li>On page 239: Example 8-15 has been changed to <br/>
1.25      petejc    226: 
1.54      david     227: <xmp class="fixed">
1.24      petejc    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)
1.25      petejc    264: </xmp>
1.24      petejc    265: 
                    266: </ul>
                    267: 
1.20      david     268: 
                    269: <a name="ch10">
                    270: <p><b>Chapter 10</b>
                    271: 
                    272: <ul>
1.54      david     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>
1.68      david     275: </ul>
                    276: 
                    277: 
1.69      david     278: <a name="ch11">
                    279: <p><b>Chapter 11</b>
1.68      david     280: 
1.70      david     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>
1.20      david     285: </ul>
                    286: 
                    287: 
                    288: <a name="ch12">
                    289: <p><b>Chapter 12</b>
                    290: 
                    291: <ul>
                    292: 
1.47      david     293: <li>On page 336: In Example 12-6
1.20      david     294: 
1.54      david     295: <xmp class="broken">
1.38      petejc    296:  print `  <checkbox label="%s" />' % form['op1'].value
                    297:  print `  <checkbox label="%s" />' % form['op2'].value
                    298:    print `  <checkbox label="%s" />' % form['op3'].value
1.47      david     299: </xmp>
                    300: 
1.48      david     301: has been changed to (note the difference in indentation and in using a single quote versus a backtick)
1.47      david     302: 
1.55      david     303: <xmp class="fixed">
1.48      david     304:    print '  <checkbox label="%s" />' % form['op1'].value
                    305:    print '  <checkbox label="%s" />' % form['op2'].value
1.38      petejc    306:    print '  <checkbox label="%s" />' % form['op3'].value
                    307: </xmp>
1.47      david     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>
1.38      petejc    312: </li>
1.47      david     313: 
1.20      david     314: </ul>
                    315: 
                    316: 
                    317: <a name="appa">
                    318: <p><b>Appendix A</b>
                    319: 
                    320: <ul>
1.18      david     321: 
1.54      david     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>
1.18      david     324: 
1.1       david     325: </ul>
1.2       david     326: 
1.3       david     327: <br><br>
                    328: 
1.23      petejc    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>