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 20615 - [Shadow]: Clarify 'At the time of event dispatch:"
Summary: [Shadow]: Clarify 'At the time of event dispatch:"
Status: RESOLVED DUPLICATE of bug 20604
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: 15480
  Show dependency treegraph
 
Reported: 2013-01-09 03:01 UTC by Hayato Ito
Modified: 2013-07-17 20:37 UTC (History)
0 users

See Also:


Attachments

Description Hayato Ito 2013-01-09 03:01:29 UTC
Shadow DOM spec 5.5 (https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#event-dispatch) says:


'At the time of event dispatch', ..

It sounds a little ambiguous.

My understanding is 'before starting capturing phase'. I mean that all of target, relatedTarget, and MouseEvent offsetX/Y should be pre-calculated in every nodes in the propagation path before starting capturing phase so that the result of calling event listeners does not affect these values.

It might be better to clarify when we should calculate these values.
Comment 1 Hayato Ito 2013-01-09 03:15:02 UTC
This is an implementation matter, but I'd like to note that pre-calculating MouseEvent offsetX and offsetY in every nodes might needs some cost since offsetX or offsetY seems lazy evaluated in current WebKit's implementation.
Comment 2 Dimitri Glazkov 2013-07-17 20:37:38 UTC

*** This bug has been marked as a duplicate of bug 20604 ***