Because it is a part of HTML shadow DOM spec, this should be under html/shadow. We have some part of its implementation under dom though, because Element attachment process depends on it. My plan is to split dom/ShadowRoot to dom/ShadowRootBase and html/ShadowRoot.
Created attachment 122594 [details] Patch
Hi Dimitri, could you take a look? I'm going to add an idl against this html/shadow/ShadowRoot.
(In reply to comment #0) > Because it is a part of HTML shadow DOM spec, this should be under html/shadow. > We have some part of its implementation under dom though, because Element attachment process depends on it. > My plan is to split dom/ShadowRoot to dom/ShadowRootBase and html/ShadowRoot. Is this really necessary? I think it's fine to have DOM objects under dom/. There are already plenty of examples. It feels like we're just splitting classes for no good reason.
> Is this really necessary? I think it's fine to have DOM objects under dom/. There are already plenty of examples. It feels like we're just splitting classes for no good reason. I originally worried about layering violation. But yes, there are many other classes doing that. I'm closing this.