<?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>24627</bug_id>
          
          <creation_ts>2014-02-12 01:05:23 +0000</creation_ts>
          <short_desc>[Shadow]: Support disconnected nodes</short_desc>
          <delta_ts>2014-02-12 04:20:30 +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>15480</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Hayato Ito">hayato</reporter>
          <assigned_to name="Hayato Ito">hayato</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>dglazkov</cc>
    
    <cc>jackalmage</cc>
    
    <cc>mike</cc>
    
    <cc>mrbkap</cc>
    
    <cc>public-webapps</cc>
    
    <cc>wchen</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100345</commentid>
    <comment_count>0</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-02-12 01:05:23 +0000</bug_when>
    <thetext>The relevant background is:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=24421</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100348</commentid>
    <comment_count>1</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-02-12 01:21:40 +0000</bug_when>
    <thetext>At first, we should decide whether we should calculate distribution or not in disconnected nodes.

From the comments in https://www.w3.org/Bugs/Public/show_bug.cgi?id=24421, there are opinions we should calculate distribution because event.path depends on that.
That sounds reasonable.

On the other hand, I&apos;ve never heard any use cases of distribution for disconnected nodes so far. Note that, although styles and distributions are completely different concepts, we don&apos;t calculate styles for disconnected nodes.

From the perspective of completeness of the specification, I think we should calculate distribution even in disconnected nodes. However, I am not sure this is hight priority tasks or not, given that no one depends on this behavior so far. Please correct me if this is wrong.

I don&apos;t have strong opinion either. Please leave comments so that we can raise the priority of this issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100352</commentid>
    <comment_count>2</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-02-12 02:37:52 +0000</bug_when>
    <thetext>&gt; we don&apos;t calculate styles for disconnected nodes

That&apos;s not necessarily true.  Web pages can ask for the computed style of such nodes.

But again, this is irrelevant given that web components can expose APIs that depend on the shadow DOM being set up correctly.  So whether you in fact set it up seems quite observable to me. You can, of course, do it lazily just like you compute styles lazily in this situation.

&gt; I am not sure this is hight priority tasks or not

It&apos;s really surprising to me that this wasn&apos;t done already....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100353</commentid>
    <comment_count>3</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-02-12 03:18:37 +0000</bug_when>
    <thetext>(In reply to Boris Zbarsky from comment #2)
&gt; &gt; we don&apos;t calculate styles for disconnected nodes
&gt; 
&gt; That&apos;s not necessarily true.  Web pages can ask for the computed style of
&gt; such nodes.

Looks like this is yet another *broken* feature in WebKit and Blink for disconnected elements. From the perspective of spec, styles should be computed on getComputedStyle() and so on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100354</commentid>
    <comment_count>4</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-02-12 03:27:03 +0000</bug_when>
    <thetext>I am now positive to support disconnected elements in the Shadow DOM spec.
Let me work on this. I have to update several parts carefully.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100356</commentid>
    <comment_count>5</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-02-12 04:20:30 +0000</bug_when>
    <thetext>I&apos;ve updated the spec:

https://github.com/w3c/webcomponents/commit/bc9e62c9e6c13229f6944f4c798f603ad98b7697

Thanks to the concept of trees of trees, updating the spec is not so hard than I expected.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>