[Bug 28564] [Shadow]: Event model

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

--- Comment #1 from Anne <annevk@annevk.nl> ---
So we need to modify event dispatch as follows:

* Add a flag to restrict dispatch to the current tree (needed e.g. for <img>'s
load and error events)
* Calculate relatedTarget (might affect composed path)
* Calculate the composed path based on relatedTarget, the aforementioned flag,
...

Then listener invocation needs these changes:

* Modify target, currentTarget, relatedTarget, offsetX/Y, Touch#target to be
relative
* Modify deepPath to exclude hidden/isolated trees

And we should consider exposing these members:

* path (excludes all shadow trees)
* deepTarget (deepPath[0])
* deepRelatedTarget (not available right now)
* deepOffsetX/Y (not available right now)
* Touch#deepTarget (not available right now)

(It seems a little bit unfortunate that we need to special case certain UI
events in the generic event dispatch algorithm. Perhaps we can find a way for
the UI Events specification to tackle the relatedTarget needs and such.)

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

Received on Monday, 27 April 2015 08:58:45 UTC