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

version 1.9, 2002/12/11 19:10:24 version 1.17, 2003/03/29 15:57:15
Line 1273  return list.selectedItem.getAttribute('l Line 1273  return list.selectedItem.getAttribute('l
      <xul:vbox class="insideBox">       <xul:vbox class="insideBox">
        <xul:description value="Top" />         <xul:description value="Top" />
        <xul:box>         <xul:box>
         </td><children includes="image" />         <children includes="image" />
        </xul:box>         </xul:box>
        <xul:description value="Bottom" />         <xul:description value="Bottom" />
      </xul:vbox>       </xul:vbox>
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." Here is the XUL code that goes    particular insertion point." 
    with this example:</p>                <br/>For example:</p>
 <pre>  <pre>
 &lt;mybinding id="myNewWidget" flex="1"&gt;  &lt;mybinding id="myNewWidget" flex="1"&gt;
&lt;image src="<a href=  &lt;image src="http://www.mozdev.org/sharedimages/header.gif" /&gt;
"http://www.mozdev.org/sharedimages/header.gif">http://www.mozdev.org/sharedimages/header.gif</a>" /&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 image is the only child taken from the XUL content and    <p>The <tt>image</tt> is the only child inserted and
    the label 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. If the bound element uses another element in addition    not used. 
    to an image element, the binding is discarded and only the<pre>
    explicit content is used. If the image element isn't used at&lt;mybinding id="myNewWidget" flex="1"&gt;
    all, the binding is discarded.</p>  &lt;label value="a non includes element" /&gt;
 &lt;/mybinding&gt;
 </pre>
                 <p>If the bound element uses another element in addition
     to an image element, again the binding is discarded and only the
     explicit content is used.</p>
 <pre>  <pre>
 &lt;mybinding id="myNewWidget" flex="1"&gt;  &lt;mybinding id="myNewWidget" flex="1"&gt;
&lt;image src="<a href=  &lt;image src="http://www.mozdev.org/sharedimages/header.gif/&gt;
"http://www.mozdev.org/sharedimages/header.gif">http://www.mozdev.org/sharedimages/header.gif</a>" /&gt;  &lt;label value="an element" /&gt;
&lt;label value="an element" /&gt; 
 &lt;/mybinding&gt;  &lt;/mybinding&gt;
 </pre>  </pre>
     <p>This example renders the image and the label and discards      <p>This example renders the image and the label and discards
Line 1765  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.9  
changed lines
  Added in v.1.17


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