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

version 1.10, 2003/03/19 15:33:27 version 1.11, 2003/03/19 15:45:00
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." So for example:</p>
    with this 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>&lt;image&gt;</tt> is the only child inserted and
    the label is ignored.</p>    the <tt>&tl;label&gt;</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. 
 <pre>
 &lt;mybinding id="myNewWidget" flex="1"&gt;
   &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, the binding is discarded and only the      to an image element, the binding is discarded and only the
     explicit content is used. If the image element isn't used at      explicit content is used. If the image element isn't used at
     all, the binding is discarded.</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="<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

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


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