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 27876 - [Shadow] It is not defined what event.path actually should return
Summary: [Shadow] It is not defined what event.path actually should return
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Hayato Ito
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-21 15:49 UTC by Olli Pettay
Modified: 2015-01-23 05:15 UTC (History)
3 users (show)

See Also:


Attachments

Description Olli Pettay 2015-01-21 15:49:02 UTC
"a copy of the event path for the context object" in unclear.
There is no such thin as Event's event path.
There is Event and there is event path but specs don't seem to actually
make clear mapping between those.

(1) What is the value when the event hasn't been dispatched?
I assume empty array.
(2) What is the value during event dispatch
I assume the event target chain which was created before capture phase
(and changes to the DOM don't actually affect to this).
(3) what is the value after the event has been dispatched?
empty array? The same as in (2)?
Comment 1 Hayato Ito 2015-01-22 08:08:25 UTC
Thanks. Let me make it clear in the spec.

The short answers are:

(In reply to Olli Pettay from comment #0)
> "a copy of the event path for the context object" in unclear.
> There is no such thin as Event's event path.
> There is Event and there is event path but specs don't seem to actually
> make clear mapping between those.
> 
> (1) What is the value when the event hasn't been dispatched?
> I assume empty array

That should be an empty array.

> (2) What is the value during event dispatch
> I assume the event target chain which was created before capture phase
> (and changes to the DOM don't actually affect to this).

Exactly.

> (3) what is the value after the event has been dispatched?
> empty array? The same as in (2)?

The same as in (2).
Comment 2 Hayato Ito 2015-01-22 09:02:23 UTC
Make it clear at
https://github.com/w3c/webcomponents/commit/f549a79f82bd27b5c605030e3db78df18fc51a12

Olli, could you take a look?
Comment 3 Hayato Ito 2015-01-23 05:15:58 UTC
One more clarification:

https://github.com/w3c/webcomponents/commit/df811a8bdcdd1276ddb1b4ce2b513b78d6945f79


Please feel free to reopen this if we need further clarification.