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

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.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: 
1.75    ! eric       28: <a name="ch1"></a>
1.20      david      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: 
1.75    ! eric       46: <a name="ch2"></a>
1.20      david      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: 
1.75    ! eric       72: <a name="ch3"></a>
1.20      david      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: 
1.75    ! eric      120: <a name="ch4"></a>
1.72      david     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.75    ! eric      134: <a name="ch5"></a>
1.26      petejc    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.75    ! eric      152: 
1.59      petejc    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>  
1.75    ! eric      169:     
1.59      petejc    170:     <form name="form">  
                    171:       <input type="button" value="Play Sound" onclick="play();">  
1.63      petejc    172:     </form>  
1.75    ! eric      173:   </ul><li>On page 137: '<b class="broken">var connection = Components.classes ["@mozilla.org/network/ldap-connection;1";</b>' has been changed to 
1.61      david     174: '<b class="fixed">var connection = Components.classes ["@mozilla.org/network/ldap-connection;1"];</b>'<br><br>
1.59      petejc    175: </li>
1.43      david     176: 
1.54      david     177: <li>On page 140: '<b class="broken">js> load(`chrome/jslib/jslib.js');</b>' has been changed to '<b class="fixed">js>
                    178: load('chrome/jslib/jslib.js');</b>'<br><br>
1.59      petejc    179: </li>
1.43      david     180: 
1.26      petejc    181: 
1.75    ! eric      182: 
        !           183: <a name="ch08"></a>
1.24      petejc    184: <p><b>Chapter 8</b>
                    185: 
                    186: <ul>
1.44      david     187: 
1.54      david     188: <li>On page 211: In 2nd sentence of paragraph '<b class="broken">QueryInterace</b>' has been changed to '<b 
                    189: class="fixed">QueryInterface</b>'<br><br>
1.44      david     190: 
1.54      david     191: <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 
                    192: value",</b>'<br><br>
1.44      david     193: 
1.47      david     194: <li>On page 222: In Example 8-4
1.45      david     195: 
1.54      david     196:             <xmp class="broken">
1.33      petejc    197:               this.myCID,
                    198:               "My JS Component",
                    199:               this.myProgID, fileSpec,
                    200:               location, true, true,
                    201:               type);
                    202:             </xmp>            
1.45      david     203: 
1.47      david     204: has been changed to
1.45      david     205: 
1.54      david     206:             <xmp class="fixed">            
1.33      petejc    207:               compMgr.registerComponentWithType(
                    208:               this.myCID,
                    209:               "My JS Component",
                    210:               this.myProgID, fileSpec,
                    211:               location, true, true,
                    212:               type);
                    213:             </xmp>            
1.45      david     214: 
1.68      david     215: <li>On page 222: In Example 8-4 one of the duplicate '<b class="broken">dump(" ***** Registering: Simple JS component!
                    216: ****\n");</b>' lines has been removed<br><br>
1.45      david     217: 
1.54      david     218: <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     219: 
                    220: <li>On page 239: Example 8-15 has been changed to <br/>
1.25      petejc    221: 
1.54      david     222: <xmp class="fixed">
1.24      petejc    223: DEPTH         = ../../..
                    224: topsrcdir     = ../../..
                    225: srcdir        = .
                    226: VPATH         = .
                    227: 
                    228: include $(DEPTH)/config/autoconf.mk
                    229: 
                    230: MODULE        = xpcom
                    231: XPIDL_MODULE  = simple
                    232: LIBRARY_NAME  = simple
                    233: IS_COMPONENT  = 1
                    234: MODULE_NAME   = nsSimpleModule
                    235: REQUIRES      = string \
                    236:                 xpcom \
                    237:                 $(NULL)
                    238: 
                    239: 
                    240: CPPSRCS   =              \
                    241:     nsSimple.cpp         \
                    242:     nsSimpleModule.cpp   \
                    243:     $(NULL)
                    244: 
                    245: XPIDLSRCS = nsISimple.idl
                    246: 
                    247: include $(topsrcdir)/config/config.mk
                    248: 
                    249: LIBS    +=        \
                    250:     $(XPCOM_LIBS) \
                    251:     $(NSPR_LIBS)  \
                    252:     $(NULL)
                    253: 
                    254: include $(topsrcdir)/config/rules.mk
                    255: 
                    256: EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS)
                    257: 
                    258: install:: $(TARGETS)
1.25      petejc    259: </xmp>
1.24      petejc    260: 
                    261: </ul>
                    262: 
1.75    ! eric      263: <a name="ch9"></a>
        !           264: <p><b>Chapter 9</b>
1.20      david     265: 
1.75    ! eric      266: <ul>
        !           267:   <li>On page 257: In Example 9-7 <br>
        !           268:     '<b><font color="#FF0000">&lt;triple subject=&quot;?listitem&quot;<br>
        !           269:     predicate=&quot; http://xfly.mozdev.org/fly-rdf#location&quot;<br>
        !           270:     object=&quot;?location&quot;/&gt;</font></b>' <br>
        !           271:     has been changed to<br>
        !           272:     '<b><font color="#009900">&lt;triple subject=&quot;?listitem&quot;<br>
        !           273:     predicate=&quot;fly-location#location&quot;<br>
        !           274:     object=&quot;?location&quot;/&gt;</font></b>'</li>
        !           275: </ul>
        !           276: 
        !           277: <a name="ch10"></a>
1.20      david     278: <p><b>Chapter 10</b>
                    279: 
                    280: <ul>
1.75    ! eric      281:   <li>On page 280: In Table 10-3 '<font color="#FF0000">Mostly used for retrieving, 
        !           282:     datasources,<br>
        !           283:     resources, and literals</font>.' has been changed to '<font color="#009900">Mostly 
        !           284:     used for retrieving datasources,<br>
        !           285:     resources, and literals</font>.'.<br>
        !           286:     <br>
        !           287:   </li>
        !           288:   <li>On page 297: '<b class="broken">http://www.jslib.mozdev.org</b>' has been 
        !           289:     changed to '<b class="fixed">http://jslib.mozdev.org</b>'<br>
        !           290:     <br>
        !           291:   </li>
1.68      david     292: </ul>
                    293: 
                    294: 
1.75    ! eric      295: <a name="ch11"></a>
1.69      david     296: <p><b>Chapter 11</b>
1.68      david     297: 
1.70      david     298: <ul> 
                    299: <li>On page 314: In Example 11-5 and Example 11-6 '<b class="broken">var linetext =
                    300: document.createTextNode(messageParagraphs[i]);</b>' has been changed to '<b class="fixed">var linetext =
                    301: document.createTextNode(lines[i]);</b>'<br><br>
1.20      david     302: </ul>
                    303: 
                    304: 
1.75    ! eric      305: <a name="ch12"></a>
1.20      david     306: <p><b>Chapter 12</b>
                    307: 
                    308: <ul>
                    309: 
1.47      david     310: <li>On page 336: In Example 12-6
1.20      david     311: 
1.54      david     312: <xmp class="broken">
1.38      petejc    313:  print `  <checkbox label="%s" />' % form['op1'].value
                    314:  print `  <checkbox label="%s" />' % form['op2'].value
                    315:    print `  <checkbox label="%s" />' % form['op3'].value
1.47      david     316: </xmp>
                    317: 
1.48      david     318: has been changed to (note the difference in indentation and in using a single quote versus a backtick)
1.47      david     319: 
1.55      david     320: <xmp class="fixed">
1.48      david     321:    print '  <checkbox label="%s" />' % form['op1'].value
                    322:    print '  <checkbox label="%s" />' % form['op2'].value
1.38      petejc    323:    print '  <checkbox label="%s" />' % form['op3'].value
                    324: </xmp>
1.47      david     325: 
                    326: <li>On page 339: A new 'Certificate Authorities and Digital
                    327: Signatures' section is being written with drafts available on <a
                    328: href="http://certs.mozdev.org">http://certs.mozdev.org</a><br><br>
1.38      petejc    329: </li>
1.47      david     330: 
1.20      david     331: </ul>
                    332: 
                    333: 
1.75    ! eric      334: <a name="appa"></a>
1.20      david     335: <p><b>Appendix A</b>
                    336: 
                    337: <ul>
1.18      david     338: 
1.54      david     339: <li>On page 365: '<b class="broken">http://www.mozilla.org/source.tml</b>' has been changed to '<b
                    340: class="fixed">http://www.mozilla.org/source.html</b>'<br><br>
1.18      david     341: 
1.1       david     342: </ul>
1.2       david     343: 
1.3       david     344: <br><br>
                    345: 
1.23      petejc    346: <!-- ?php require(NOTES); ? -->
                    347: <?php $post_to_list=NO; $author='reviewers@mozdev.org'; $target_page='corrections'; require(NOTES); ?>
1.75    ! eric      348:   
        !           349: </html>
        !           350: </xmp>
        !           351: 
        !           352: 

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