<?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>28008</bug_id>
          
          <creation_ts>2015-02-13 01:32:40 +0000</creation_ts>
          <short_desc>[Shadow] Should &quot;Events that are Always Stopped&quot; include destination insertion points?</short_desc>
          <delta_ts>2015-04-07 08:07:53 +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>All</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>23887</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Koji Ishii">kojiishi</reporter>
          <assigned_to name="Hayato Ito">hayato</assigned_to>
          <cc>annevk</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>dglazkov</cc>
    
    <cc>hayato</cc>
    
    <cc>jonas</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>sorvell</cc>
    
    <cc>sorvell</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>117878</commentid>
    <comment_count>0</comment_count>
    <who name="Koji Ishii">kojiishi</who>
    <bug_when>2015-02-13 01:32:40 +0000</bug_when>
    <thetext>5.1 Events that are Always Stopped[1] states that:

&gt; The following events must always be stopped at the root node of the node tree

While by following the algorithm in the event path calculation algorithm in 5.2 Event Paths[2], it includes &quot;the destination insertion points of CURRENT&quot;.

Either the wording of 5.1 or the algorithm need to change.

[1] http://w3c.github.io/webcomponents/spec/shadow/#events-that-are-always-stopped
[2] http://w3c.github.io/webcomponents/spec/shadow/#dfn-event-path-calculation-algorithm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117883</commentid>
    <comment_count>1</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-02-13 04:43:01 +0000</bug_when>
    <thetext>The algorithm is correct and intentional:

We should fix the wording like this:

&gt; The following events must always be stopped at the root node of *youngest shadow tree*.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117886</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-02-13 08:05:57 +0000</bug_when>
    <thetext>Please see bug 20247 comment 10.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117887</commentid>
    <comment_count>3</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-02-13 08:15:23 +0000</bug_when>
    <thetext>(In reply to Anne from comment #2)
&gt; Please see bug 20247 comment 10.

Thanks, but I&apos;m afraid bug 20247 is an orthogonal issue.

Even when we can resolve bug 20247, this issue, *where* we should stop an event, still apply.

I&apos;m totally supportive for bug 20247 comment 10, but I&apos;ve not started on working bug 20247 yet...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118244</commentid>
    <comment_count>4</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-03-03 07:59:59 +0000</bug_when>
    <thetext>Fixed at https://github.com/w3c/webcomponents/commit/2a3b7ed34bdbfb8ab095c914d41bf22703a117f5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119302</commentid>
    <comment_count>5</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-04-07 08:07:53 +0000</bug_when>
    <thetext>Let me add a note in more reader friendly way here:


(1) &quot;Events that are always stopped&quot; are stopped at the boundary between the *youngest* shadow root and it&apos;s shadow host.

(2) &quot;Events that are always stopped&quot; are *NOT* stopped at the boundary between the older shadow root and the shadow insertion points in the younger shadow root. 

This situation, (2), is very similar to the following situation:

(3) &quot;Events that are always stopped&quot; are *NOT* stopped at the boundary between the child node, A, of the shadow host and A&apos;s destination insertion point.


In other words, the sub-path, from the youngest shadow root to it&apos;s shadow host, is the only moment where an event is propagating from &quot;Child Component&quot; to &quot;Parent Component&quot;. 

(2) and (3) are not.

I might add this note to the spec itself as a non-normative note.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>