File:  [mozdev] / books / www / corrections.html
Revision 1.76: download - view: text, annotated - select for diffs - revision graph
Tue Feb 18 13:30:58 2003 UTC (16 years, 9 months ago) by brian
Branches: MAIN
CVS tags: HEAD
fixing a missing end tag in html on corrections page

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

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