[Bug 23887] [Shadow] Put only the final destination insertion point to the event path

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23887

--- Comment #62 from Olli Pettay <bugs@pettay.fi> ---
Created attachment 1458
  --> https://www.w3.org/Bugs/Public/attachment.cgi?id=1458&action=edit
example

This shows a case when dispatching two events ends up creating 
a diamond shape, because the first insertion point is cherry picked form the
flattened tree to the next item in the propagation path after the target.
Such behavior is really odd when we otherwise operate on trees and lists.
(And in my mind insertion points are there in the flattened tree. Otherwise
events couldn't go through them at all.
 But it is actually not a Shadow DOM terminology.)

DOM:
<div id="sh1">
  <span id="s1"> [click me 1] </span>
  <span id="s2"> [click me 2] </span>
</div>

attached to sh1:
<shadowroot>
  <span id='sh2'>
    <content id='ip1'></content>
   </span>
</shadowroot>

attached to sh2:
<shadowroot>
  <content id='ip2.1' select='#s1'></content>
  <content id='ip2.2' select='#s2'></content>
</shadowroot>

propagation paths are
- SPAN[id=s1], CONTENT[id=ip1], CONTENT[id=ip2.1], SPAN[id=sh2], DIV[id=sh1]
- SPAN[id=s2], CONTENT[id=ip1], CONTENT[id=ip2.2], SPAN[id=sh2], DIV[id=sh1]

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Saturday, 22 March 2014 16:26:44 UTC