<?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>16599</bug_id>
          
          <creation_ts>2012-04-02 09:16:12 +0000</creation_ts>
          <short_desc>[Shadow]: Event Dispatch on non-distributed light children.</short_desc>
          <delta_ts>2012-05-08 01:19:49 +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>WONTFIX</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>
          <everconfirmed>1</everconfirmed>
          <reporter name="Hayato Ito">hayato</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>66328</commentid>
    <comment_count>0</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2012-04-02 09:16:12 +0000</bug_when>
    <thetext>Clarify what is an expected behavior when an event happens on non-distributed light children.

Suppose the following tree:

&lt;div id=&apos;shadow-host-A&apos;&gt;
  &lt;shadow-root&gt;
    &lt;div id=&apos;shadow-root-child&apos;&gt;
    ...there is no &lt;content&gt; elements in the shadow root.
  &lt;div id=&apos;light-child-1&apos;&gt;
  &lt;div id=&apos;light-child-2&apos;&gt;

#shadow-host-A has a shadow root, but there is no &lt;content&gt; element in there.
So #light-child-1 and #light-child-2 don&apos;t appear in ComposedShadowTree. ComposedShadowTree is:

&lt;div id=&apos;shadow-host-A&apos;&gt;
  &lt;div id=&apos;shadow-root-child&apos;&gt;

And suppose an event happens on #light-child-1 (e.g. document.getElementById(&apos;light-child-1&apos;).focus()).
What is expected behavior?.

In algorithm of calculating adjustedParentNode used in section 6, it&apos;s not clear what is the result of &apos;adjustedParentNode of #light-child-1&apos;.
In my opinion, adjustedParentNode(light-chlild-1) should be &apos;null&apos; instead of &apos;#shadow-host-A&apos; in this case. What do you think about?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66330</commentid>
    <comment_count>1</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2012-04-02 09:39:19 +0000</bug_when>
    <thetext>Let me rethink about it..
&apos;adjustedParentNode(non-distributed-light-child) should be null&apos; might cause undesirable side effects on many other parts. I should be careful about it.

I just would like to know what is expected result of adjustedParentNode(non-distributed-light-child).

(In reply to comment #0)
&gt; In algorithm of calculating adjustedParentNode used in section 6, it&apos;s not
&gt; clear what is the result of &apos;adjustedParentNode of #light-child-1&apos;.
&gt; In my opinion, adjustedParentNode(light-chlild-1) should be &apos;null&apos; instead of
&gt; &apos;#shadow-host-A&apos; in this case. What do you think about?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67433</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-05-07 21:03:00 +0000</bug_when>
    <thetext>Non-distributed children should behave as typical children of the shadow host, unencumbered by shadow DOM in any way. Sounds about right? If so, will spec that way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67466</commentid>
    <comment_count>3</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2012-05-08 01:19:49 +0000</bug_when>
    <thetext>Yes, I&apos;ve changed my mind since I filed this bug. We can close this bug and mark it WONTFIX.

The work-in-progress idea already treats non-distributed-light-child as typical children of shadow host.
https://docs.google.com/a/chromium.org/document/d/1PY7KkTRI-doU9Hew3Mud9JBgjj5xtVqH8sY0Ui305nw/edit

(In reply to comment #2)
&gt; Non-distributed children should behave as typical children of the shadow host,
&gt; unencumbered by shadow DOM in any way. Sounds about right? If so, will spec
&gt; that way.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>