This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17177 - [Shadow]: Event retargeting algorithm should be slightly modified.
Summary: [Shadow]: Event retargeting algorithm should be slightly modified.
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 14978
  Show dependency treegraph
 
Reported: 2012-05-25 09:51 UTC by Hayato Ito
Modified: 2012-07-20 18:05 UTC (History)
0 users

See Also:


Attachments

Description Hayato Ito 2012-05-25 09:51:57 UTC
'Section 6.1 Event Retargeting' 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, 'popping stack if shadow root' should be done after 'Add (TARGET, ANCESTOR) tuple to TARGETS'.
Comment 1 Dimitri Glazkov 2012-07-20 18:05:21 UTC
http://dvcs.w3.org/hg/webcomponents/rev/4bca5c78bb64

Thanks!