Re:Declarative Shadow DOM
by transfire on Friday October 02, 2020 @05:19AM
(#24660680)
One wonders if they couldn't just make CSS namespace aware.
[ Parent
| on HN ]
They did that already over on http://mdn.io/css/namespace
Re:Declarative Shadow DOM
by chrismorgan on Friday October 02, 2020 @06:49AM
(#24661225)
I’m not sure what you’re saying here—it seems to be entirely unrelated to declarative Shadow DOM. Can you explain more?
I think what they're saying is since the article says this "Shadow DOM provides a way to scope CSS styles to a specific DOM subtree and isolate that subtree from the rest of the document." if we could just make CSS namespace aware maybe we don't need the Shadow DOM after all.
Re:Declarative Shadow DOM
by chrismorgan on Friday October 02, 2020 @04:43PM
(#24666823)
But even then, what do you mean by “namespace”? Like, if we’re talking XML namespaces, CSS has that. But I don’t think that’s what’s meant. But I haven’t the foggiest idea what is meant (hence the request for clarification).