- From: robglidden <notifications@github.com>
- Date: Wed, 13 Mar 2024 17:46:45 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 14 March 2024 00:46:50 UTC
@justinfagnani: > Those attributes should go in attachShadow() or on the `<template>` element. Putting them on the custom element breaks encapsulation without the element author having opted into it. Just to be clear, there are currently no Custom Elements being upgraded from HTML in the POC. But declarative shadow DOM does provide opt-in protection for that case. If attachShadow() is called on an element with an existing declarative shadow root, the declarative shadow root [is emptied and returned](https://developer.chrome.com/docs/css-ui/declarative-shadow-dom#component_hydration). So opt-in by the web component author would be required, even in this "pull" use. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/909#issuecomment-1996194974 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/909/1996194974@github.com>
Received on Thursday, 14 March 2024 00:46:50 UTC