Diff for /books/www/chapters/ch07.html between versions 1.11 and 1.17

version 1.11, 2003/03/19 15:45:00 version 1.17, 2003/03/29 15:57:15
Line 1283  return list.selectedItem.getAttribute('l Line 1283  return list.selectedItem.getAttribute('l
     <p>The children element in <a href="#77016">Example 7-5</a>      <p>The children element in <a href="#77016">Example 7-5</a>
     essentially tells, "Of all the content contained in the bound      essentially tells, "Of all the content contained in the bound
     element, insert only the <tt>image</tt> element at this      element, insert only the <tt>image</tt> element at this
    particular insertion point." So for example:</p>    particular insertion point." 
                 <br/>For example:</p>
 <pre>  <pre>
 &lt;mybinding id="myNewWidget" flex="1"&gt;  &lt;mybinding id="myNewWidget" flex="1"&gt;
   &lt;image src="http://www.mozdev.org/sharedimages/header.gif" /&gt;    &lt;image src="http://www.mozdev.org/sharedimages/header.gif" /&gt;
   &lt;label value="a non includes element" /&gt;    &lt;label value="a non includes element" /&gt;
 &lt;/mybinding&gt;  &lt;/mybinding&gt;
 </pre>  </pre>
    <p>The <tt>&lt;image&gt;</tt> is the only child inserted and    <p>The <tt>image</tt> is the only child inserted and
    the <tt>&tl;label&gt;</tt> element is ignored.</p>    the <tt>label</tt> element is ignored.</p>
     <p>If you have children that are not defined in the      <p>If you have children that are not defined in the
     <tt>includes</tt> attribute, then the binding is discarded and      <tt>includes</tt> attribute, then the binding is discarded and
     not used.       not used. 
Line 1301  return list.selectedItem.getAttribute('l Line 1302  return list.selectedItem.getAttribute('l
 &lt;/mybinding&gt;  &lt;/mybinding&gt;
 </pre>  </pre>
                 <p>If the bound element uses another element in addition                  <p>If the bound element uses another element in addition
    to an image element, the binding is discarded and only the    to an image element, again the binding is discarded and only the
    explicit content is used. If the image element isn't used at    explicit content is used.</p>
    all, the binding is discarded.</p> 
 <pre>  <pre>
 &lt;mybinding id="myNewWidget" flex="1"&gt;  &lt;mybinding id="myNewWidget" flex="1"&gt;
   &lt;image src="http://www.mozdev.org/sharedimages/header.gif" /&gt;    &lt;image src="http://www.mozdev.org/sharedimages/header.gif" /&gt;
Line 1768  this.label = tipNode.getAttribute("toolt Line 1768  this.label = tipNode.getAttribute("toolt
     File a <a href=      File a <a href=
     "http://mozdev.org/bugs/enter_bug.cgi?product=books">Bug</a>      "http://mozdev.org/bugs/enter_bug.cgi?product=books">Bug</a>
     for chapter 7. <!-- ?php require(NOTES); ? -->      for chapter 7. <!-- ?php require(NOTES); ? -->
    <?php $post_to_list=NO; $author='reviewers@mozdev.org'; $target_page='ch07'; require(NOTES); ?>    <!-- ?php $hide_text_control=1; $post_to_list=NO; $author='reviewers@mozdev.org'; require(NOTES); ? -->

Removed from v.1.11  
changed lines
  Added in v.1.17


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