-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shared mixin for Document and ShadowRoot #91
Comments
I've filed a bug to HTML: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28748 |
We might want to resolve this issue when we upstream Shadow DOM into {DOM/HTML} Standard. |
Yeah, Shadow DOM spec has started to use |
I don't like |
How about |
Every node on its own is a "tree root". And speaking of overloaded terms, what about |
@annevk Then we should come up with a different word. I would strongly object to using the term "component" in this manner. |
It's just a mixin, it isn't even exposed to script. And we don't really use "component" anywhere else as far as I know. I can't quite think of a good alternative. |
I would still be strongly opposed to this terminology creeping into various specifications. |
I see. What about |
(That doesn't really solve the problem of what we'd call that type of tree though.) |
Though given that in the specification today "component tree" is equivalent to "node tree", perhaps we can work around that. Not sure. Need to study it more. |
|
Okay, so the DOM Standard will define the |
+1. |
See WICG/webcomponents#91 for context.
Added to DOM. Shadow DOM specification can now make use of it. |
Title: [Shadow]: Have a common interface between Document and ShadowRoot (bugzilla: 28493)
Migrated from: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28493
comment: 0
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28493#c0
Hayato Ito wrote on 2015-04-15 06:37:12 +0000.
This is separated from https://www.w3.org/Bugs/Public/show_bug.cgi?id=27829#c2
Instead of defining these in Shadow Root as well as in Document, I've started to feel that it'd be better that we have the common interface between Document and Shadow Root.
e.g.
comment: 1
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28493#c1
Anne wrote on 2015-04-15 08:22:32 +0000.
Perhaps something along the lines of LayoutRoot?
comment: 2
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28493#c2
Hayato Ito wrote on 2015-04-15 09:27:47 +0000.
Thank you.
BTW, in Blink, we use a term of TreeScope for this purpose, at least in C++.
Both Document and ShadowRoot implements TreeScope.
(In reply to Anne from comment #1)
So the candidates are:
Any other better idea?
comment: 3
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28493#c3
Anne wrote on 2015-04-15 09:32:58 +0000.
TreeScope and NodeTreeRoot both have the problem that their terminology also applies to Element and DocumentFragment.
What's special about ShadowRoot and Document is that they are layout/CSS/stylesheet boundaries.
comment: 4
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28493#c4
Hayato Ito wrote on 2015-04-15 11:29:25 +0000.
Thank you for the explanation. I understand. Only Document and ShadowRoot contribute to Layout Tree. That's true!
+1 for LayoutRoot.
comment: 5
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28493#c5
Tab Atkins Jr. wrote on 2015-04-15 16:44:38 +0000.
I used the name "TreeScope" in http://tabatkins.github.io/specs/construct-stylesheets/#adding-stylesheets.
But Anne's comments make some sense. I'm fine with LayoutRoot.
The text was updated successfully, but these errors were encountered: