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

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

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