[Bug 21066] Provide an event path API

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

--- Comment #58 from Hayato Ito <hayato@chromium.org> ---
(In reply to Anne from comment #57)
> A fix for DOM would be somewhat more complex I think. We need to flush out
> the definition of path so it's crystal clear.
> 
> Also, this makes it return an array, correct? And mutating that array won't
> have any effect on anything? I think that's fine... (There's some talk over
> in IDL land about being able to return frozen array objects for cases like
> this...)

Yeah, mutation shouldn't have any effect. The returned *array-like* should not
be a   live array. That's my intention.

Does a frozen array mean the array itself can't be modified?

e.g

var path = event.path;
path[0] = 'a'; // => This throws an exception.
path.push('a'); // This also throws an exception.

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

Received on Tuesday, 13 January 2015 23:26:21 UTC