File:  [mozdev] / books / www / corrections.html
Revision 1.75: download - view: text, annotated - select for diffs - revision graph
Mon Feb 17 19:26:42 2003 UTC (16 years, 9 months ago) by eric
Branches: MAIN
CVS tags: HEAD
no message

    1: <html><style>
    2:   .broken { color: red; }
    3:   .fixed { color: green; }
    4: </style>
    5: 
    6: <body><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"></a>
   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"></a>
   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"></a>
   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"></a>
   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"></a>
  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"></a>
  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: 
  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:     
  170:     <form name="form">  
  171:       <input type="button" value="Play Sound" onclick="play();">  
  172:     </form>  
  173:   </ul><li>On page 137: '<b class="broken">var connection = Components.classes ["@mozilla.org/network/ldap-connection;1";</b>' has been changed to 
  174: '<b class="fixed">var connection = Components.classes ["@mozilla.org/network/ldap-connection;1"];</b>'<br><br>
  175: </li>
  176: 
  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>
  179: </li>
  180: 
  181: 
  182: 
  183: <a name="ch08"></a>
  184: <p><b>Chapter 8</b>
  185: 
  186: <ul>
  187: 
  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>
  190: 
  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>
  193: 
  194: <li>On page 222: In Example 8-4
  195: 
  196:             <xmp class="broken">
  197:               this.myCID,
  198:               "My JS Component",
  199:               this.myProgID, fileSpec,
  200:               location, true, true,
  201:               type);
  202:             </xmp>            
  203: 
  204: has been changed to
  205: 
  206:             <xmp class="fixed">            
  207:               compMgr.registerComponentWithType(
  208:               this.myCID,
  209:               "My JS Component",
  210:               this.myProgID, fileSpec,
  211:               location, true, true,
  212:               type);
  213:             </xmp>            
  214: 
  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>
  217: 
  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>
  219: 
  220: <li>On page 239: Example 8-15 has been changed to <br/>
  221: 
  222: <xmp class="fixed">
  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)
  259: </xmp>
  260: 
  261: </ul>
  262: 
  263: <a name="ch9"></a>
  264: <p><b>Chapter 9</b>
  265: 
  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>
  278: <p><b>Chapter 10</b>
  279: 
  280: <ul>
  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>
  292: </ul>
  293: 
  294: 
  295: <a name="ch11"></a>
  296: <p><b>Chapter 11</b>
  297: 
  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>
  302: </ul>
  303: 
  304: 
  305: <a name="ch12"></a>
  306: <p><b>Chapter 12</b>
  307: 
  308: <ul>
  309: 
  310: <li>On page 336: In Example 12-6
  311: 
  312: <xmp class="broken">
  313:  print `  <checkbox label="%s" />' % form['op1'].value
  314:  print `  <checkbox label="%s" />' % form['op2'].value
  315:    print `  <checkbox label="%s" />' % form['op3'].value
  316: </xmp>
  317: 
  318: has been changed to (note the difference in indentation and in using a single quote versus a backtick)
  319: 
  320: <xmp class="fixed">
  321:    print '  <checkbox label="%s" />' % form['op1'].value
  322:    print '  <checkbox label="%s" />' % form['op2'].value
  323:    print '  <checkbox label="%s" />' % form['op3'].value
  324: </xmp>
  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>
  329: </li>
  330: 
  331: </ul>
  332: 
  333: 
  334: <a name="appa"></a>
  335: <p><b>Appendix A</b>
  336: 
  337: <ul>
  338: 
  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>
  341: 
  342: </ul>
  343: 
  344: <br><br>
  345: 
  346: <!-- ?php require(NOTES); ? -->
  347: <?php $post_to_list=NO; $author='reviewers@mozdev.org'; $target_page='corrections'; require(NOTES); ?>
  348:   
  349: </html>
  350: </xmp>
  351: 
  352: 

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