<?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>17177</bug_id>
          
          <creation_ts>2012-05-25 09:51:57 +0000</creation_ts>
          <short_desc>[Shadow]: Event retargeting algorithm should be slightly modified.</short_desc>
          <delta_ts>2012-07-20 18:05:21 +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>
          <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>68103</commentid>
    <comment_count>0</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2012-05-25 09:51:57 +0000</bug_when>
    <thetext>&apos;Section 6.1 Event Retargeting&apos; should be slightly modified as follows:

1. Let STACK be a stack of DOM nodes
2. Let ANCESTOR be NODE
3. Repeat while ANCESTOR exists:
  1. If ANCESTOR is an insertion point, push ANCESTOR into STACK
  2. If STACK is empty, push ANCESTOR into STACK
  3. Let TARGET be the DOM node at the top of STACK
  4. Add (TARGET, ANCESTOR) tuple to TARGETS
  5. If ANCESTOR is a shadow root
    1. Pop STACK if STACK is not empty
  6. Set ANCESTOR to be the result of parent calculation algorithm, given ANCESTOR as input


To be short, &apos;popping stack if shadow root&apos; should be done after &apos;Add (TARGET, ANCESTOR) tuple to TARGETS&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71267</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-07-20 18:05:21 +0000</bug_when>
    <thetext>http://dvcs.w3.org/hg/webcomponents/rev/4bca5c78bb64

Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>