<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>15294</bug_id>
          
          <creation_ts>2011-12-21 08:37:40 +0000</creation_ts>
          <short_desc>[Shadow]: Tree composition algorithm should select the child nodes of the shadow host at a shadow insertion point when there is no older shadow tree</short_desc>
          <delta_ts>2011-12-21 19:32:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>14978</blocked>
    
    <blocked>15300</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominic Cooney">dominicc</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61861</commentid>
    <comment_count>0</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2011-12-21 08:37:40 +0000</bug_when>
    <thetext>The tree composition algorithm step 5.2.1.1 says &quot;If there is no older tree, stop.&quot;

I think that this should be changed to:

&quot;Distribute the remaining nodes in POOL, if any, to POINT.&quot;

As I understand the intent of the shadow element it is to compose with other shadow trees. However since the presence of an older shadow tree is not detectable, it is not possible to create a shadow tree that is generally composable. It is Sophie’s choice, do I

&lt;shadow&gt;&lt;/shadow&gt; — compose with other shadow trees, and let unused light children die if there is no older shadow tree

or

&lt;content&gt;&lt;/content&gt; — render unused light children, but let any older shadow trees die?

If the tree composition algorithm is changed in the proposed way then the shadow element can be used to create generally composable shadow trees.

Alternatively, the spec could state that elements should have an oldest shadow equivalent to &lt;content&gt;&lt;/content&gt;. (Should and not must for UAs which want to use shadow DOM as an implementation mechanism, for example, to suppress the rendering of children in elements which do not permit child content etc.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61887</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2011-12-21 19:27:55 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; The tree composition algorithm step 5.2.1.1 says &quot;If there is no older tree,
&gt; stop.&quot;
&gt; 
&gt; I think that this should be changed to:
&gt; 
&gt; &quot;Distribute the remaining nodes in POOL, if any, to POINT.&quot;

I think this is what I&apos;ll do for now.

&gt; Alternatively, the spec could state that elements should have an oldest shadow
&gt; equivalent to &lt;content&gt;&lt;/content&gt;. (Should and not must for UAs which want to
&gt; use shadow DOM as an implementation mechanism, for example, to suppress the
&gt; rendering of children in elements which do not permit child content etc.)

I really like this notion, but it has exactly the same effect as the first change you proposed. Perhaps we&apos;ll come back to doing it this way later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61888</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2011-12-21 19:30:49 +0000</bug_when>
    <thetext>http://dvcs.w3.org/hg/webcomponents/rev/2c3c3971a9f5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>