<?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>19875</bug_id>
          
          <creation_ts>2012-11-06 09:18:18 +0000</creation_ts>
          <short_desc>[Shadow]: Retargeting algorithm is incorrectly retargets at lower boundary</short_desc>
          <delta_ts>2012-11-08 21:35:46 +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 - DOM3 Events</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</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>18428</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergey G. Grekhov">sgrekhov</reporter>
          <assigned_to name="Doug Schepers">schepers</assigned_to>
          <cc>dglazkov</cc>
    
    <cc>hayato</cc>
    
    <cc>mike</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>77931</commentid>
    <comment_count>0</comment_count>
    <who name="Sergey G. Grekhov">sgrekhov</who>
    <bug_when>2012-11-06 09:18:18 +0000</bug_when>
    <thetext>This is offshot of https://bugs.webkit.org/show_bug.cgi?id=101309. 

It&apos;s unclear from Shadow DOM specification why parent calculation algorithm shouldn&apos;t be invoked for document nodes distributed to the insertion points. See https://bugs.webkit.org/show_bug.cgi?id=101309 for example</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77932</commentid>
    <comment_count>1</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2012-11-06 09:40:04 +0000</bug_when>
    <thetext>In my understanding, the parent calculation algorithm should be also invoked for a node distributed to insertion points.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78078</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-11-08 20:48:27 +0000</bug_when>
    <thetext>Okay, running the event retargeting algorithm on the tree in https://bugs.webkit.org/show_bug.cgi?id=101309:

1) We start with &quot;#li3&quot;, push it into STACK and add (#li3, #li3) to TARGETS
2) According to parent calculation algo, next up is &quot;content&quot;
3) Since it&apos;s an insertion point, we push &quot;content&quot; to STACK and add (content, content) to TARGETS
4) Next up is &quot;ul#ip_wrapper&quot;
5) We add (ul#ip_wrapper, content) to TARGETS
6) Next up is &quot;div&quot;
7) We add (div, content) to TARGETS
8) Next up is ShadowRoot
9) We add (ShadowRoot, content) to targets, then pop STACK
10) Next up is &quot;ul.stories&quot;
11) We add (ul.stories, #li3) to TARGETS
...

So the problem is starts with step 3. We should _not_ retarget at insertion point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78079</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-11-08 21:35:06 +0000</bug_when>
    <thetext>Okay, running the event retargeting algorithm on the tree in https://bugs.webkit.org/show_bug.cgi?id=101309:

1) We start with &quot;#li3&quot;, push it into STACK and add (#li3, #li3) to TARGETS
2) According to parent calculation algo, next up is &quot;content&quot;
3) Since it&apos;s an insertion point, we push &quot;content&quot; to STACK and add (content, content) to TARGETS
4) Next up is &quot;ul#ip_wrapper&quot;
5) We add (ul#ip_wrapper, content) to TARGETS
6) Next up is &quot;div&quot;
7) We add (div, content) to TARGETS
8) Next up is ShadowRoot
9) We add (ShadowRoot, content) to targets, then pop STACK
10) Next up is &quot;ul.stories&quot;
11) We add (ul.stories, #li3) to TARGETS
...

So the problem is starts with step 3. We should _not_ retarget at insertion point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78080</commentid>
    <comment_count>4</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-11-08 21:35:46 +0000</bug_when>
    <thetext>http://dvcs.w3.org/hg/webcomponents/rev/c7b1b3f1caf6</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>