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

version 1.8, 2002/12/11 18:57:10 version 1.17, 2003/03/29 15:57:15
Line 1 Line 1
       <link rel="prev" href="http://books.mozdev.org/chapters/ch06.html" />
       <link rel="next" href="http://books.mozdev.org/chapters/ch08.html" />
   
     <style type="text/css">      <style type="text/css">
       div.c19 {font-weight: bold; text-align: center}        div.c19 {font-weight: bold; text-align: center}
       div.c18 {text-align: center}        div.c18 {text-align: center}
Line 1270  return list.selectedItem.getAttribute('l Line 1273  return list.selectedItem.getAttribute('l
      &lt;xul:vbox class="insideBox"&gt;       &lt;xul:vbox class="insideBox"&gt;
        &lt;xul:description value="Top" /&gt;         &lt;xul:description value="Top" /&gt;
        &lt;xul:box&gt;         &lt;xul:box&gt;
         &lt;/td&gt;&lt;children includes="image" /&gt;         &lt;children includes="image" /&gt;
        &lt;/xul:box&gt;         &lt;/xul:box&gt;
        &lt;xul:description value="Bottom" /&gt;         &lt;xul:description value="Bottom" /&gt;
      &lt;/xul:vbox&gt;       &lt;/xul:vbox&gt;
Line 1280  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 
    explicit content is used. If the image element isn't used at 
    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="<a href=  &lt;label value="a non includes element" /&gt;
"http://www.mozdev.org/sharedimages/header.gif">http://www.mozdev.org/sharedimages/header.gif</a>" /&gt;&lt;/mybinding&gt;
&lt;label value="an element" /&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>
 &lt;mybinding id="myNewWidget" flex="1"&gt;
   &lt;image src="http://www.mozdev.org/sharedimages/header.gif/&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 1762  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.8  
changed lines
  Added in v.1.17


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