On 05/21/2015 05:11 AM, Hayato Ito wrote:
> Yeah, 3% is surprising number to me. I have no idea about from where this number comes, as of now.
>
> As for event.path, I thought that we should deprecate it after event.deepPath is shipped so that we can encourage developers to switch from event.path
> to event.deepPath.
>
> I think we have several options for event.path:
>
> 1. We should have the new name for event's (local) path. e.g. event.localPath. In this case, we don't have to be hurry to deprecate event.path in Blink.
>
> 2. We should *reuse* the name of event.path, with the new behavior.
This was the plan. .path would contain nodes only within the same DOM subtree, not inner shadow DOM.
.deepPath would have also the shadow DOM nodes.
.path will be defined in DOM spec.
-Olli
> In this case, we should deprecate and remove event.path in Blink asap. Then, after a while, we will *revive* event.path with the new behavior.
>
> In any case, I thought it's okay to implement and ship event.deepPath in Blink.
>
> After shipping event.deepPath, we might have more usage data for both so that we can do the best judge about how we should treat the event.path in
> Blink (and in the spec).
>
> On Thu, May 21, 2015 at 1:03 AM Domenic Denicola <
d...@domenic.me <mailto:
d...@domenic.me>> wrote:
>
> From:
blin...@chromium.org <mailto:
blin...@chromium.org> [mailto:
blin...@chromium.org <mailto:
blin...@chromium.org>] On Behalf Of Philip
> Jägenstedt
>
> > Usage of Event.path is very high, over 3%, so it seems like quite a challenge to get rid of it. Is it not an option to keep the name and change
> the spec instead? Event.path isn't used for anything else, after all:
https://dom.spec.whatwg.org/#interface-event
>
> [+Anne, please correct me if I misrepresent you on the following]
>
> At the F2F Anne expressed that he would like `event.path` to exist as the event’s normal path, censored so as not to include things in shadow
> trees. That is, this concept already exists in the DOM, and he would like to expose it under the appropriate name, `path`. The fact that the “deep
> path” concept is squatting on the `path` name is unfortunate, from this point of view.
>
> At the F2F we ended up saying that there’s no need to expose the “path” concept as well as the “deep path” concept for now; we can expose “deep
> path” only, and later maybe introduce “path”. Thus our conclusion was to switch to exposing “deep path” as `deepPath` to leave room for a future
> `path`.
>
> However, I wonder if in light of these usage numbers it would be good to introduce "deep path" and "path" at the same time? It would change the
> question from "how many sites would break if we totally removed `path`?" to "how many sites would break if `path` started censoring things in
> shadow trees?"
>
> I guess we could only answer this if we had a better idea what that 3% `path` usage was doing...
>
> <mailto:
blink-dev+...@chromium.org>.