Suppose the following tree: <div id='host'> - <shadow root> - <content> - <text node A> When <text node A> is clicked, click event's target becomes #host. But that should be 'shadow root'. The reason is that the text node is distributed and the nearest parentNode of the text node is 'shadow root' in composed shadow DOM tree.
Created attachment 143485 [details] use composed shadow tree
Comment on attachment 143485 [details] use composed shadow tree View in context: https://bugs.webkit.org/attachment.cgi?id=143485&action=review > LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching.html:193 > +function prepareDOMTree6(parent) you really should consider naming these methods to describe the nature of the test.
Thank you for the review. (In reply to comment #2) > (From update of attachment 143485 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=143485&action=review > > > LayoutTests/fast/dom/shadow/shadow-dom-event-dispatching.html:193 > > +function prepareDOMTree6(parent) > > you really should consider naming these methods to describe the nature of the test. Yeah, let me name these functions to good ones in another patch.
Comment on attachment 143485 [details] use composed shadow tree Clearing flags on attachment: 143485 Committed r118299: <http://trac.webkit.org/changeset/118299>
All reviewed patches have been landed. Closing bug.