Repository navigation
Conversation
Fixes #85 by creating a new category of elements which cannot be shadow hosts, and porting over the list from the shadow DOM specification. See also WICG/webcomponents#110 (comment). This is also related to #86, as currently the list corresponds to elements whose rendering is defined with a binding property, but we want to remove the binding stuff anyway.
|
lgtm. |
|
So @rniwa mentioned a bunch of other elements in the Shadow DOM issue and nobody replied. I think it would be good to have that discussion first since we might end up with a different design. |
|
Right. In particular, the behavior of attaching shadow roots on replaced elements such as img, embed, object, etc... are not well defined even though they don't use
In addition, we may want to consider disallowing them on SVG tref and use elements. In fact, we may want to consider allowing |
|
Since shadow DOM is such a complicated feature with lots of historically controversial topics, I think we're better off being as conservative as possible so that all browsers that decide to implement shadow DOM can interoperate. I'm very afraid that we'll be introducing lots of edge cases to some implementation dependent behaviors otherwise. |
|
@rniwa I generally agree with you. Maybe it would be best to let the shadow DOM spec maintain the list of disallowed elements for now, and when there is general agreement we can add it back in to HTML? (Probably at the same time much of the rest of the spec gets incorporated into DOM and HTML.) |
Definitely seems like that would be the less costly and time-consuming option. And as far as tracking it, it’s not like it would ever fall between the cracks or anything. Experience in seeing how other cases have been handled in the past seems to suggest it will just naturally bubble up again as a priority after things are further along implementation-wise. |
|
@rniwa, thoughts on #131 (comment) ? |
|
That's fine but please keep the issue to move this to HTML spec open. We should merge it into HTML spec once things are more stable. |
|
OK. @hayatoito, can you take the action item to:
Once those tasks are completed we can close this PR, and resurrect it later once shadow DOM begins its integration with DOM and HTML. |
|
Sure, let me update the Shadow DOM spec. I'll update this thread once done. |
|
It looks like Shadow DOM was indeed updated to no longer reference the binding property. So let's close this. It is just part of the general work to migrate shadow DOM into DOM/HTML. |
Fixes #85 by creating a new category of elements which cannot be shadow
hosts, and porting over the list from the shadow DOM specification.
See also WICG/webcomponents#110 (comment).
This is also related to #86, as currently the list corresponds to
elements whose rendering is defined with a binding property, but we
want to remove the binding stuff anyway.
R= @rniwa, @hayatoito.
Plus could use some careful review from other editors to make sure I'm doing this introducing a new category thing right. (It really sucks; I wish it were all auto-generated from one central source.)