- From: Alex Keng <notifications@github.com>
- Date: Fri, 10 Oct 2025 14:58:12 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 10 October 2025 21:58:16 UTC
alexkeng left a comment (WICG/webcomponents#814)
@julienw
It seems there could be security concerns if `form` were writable and allowed to reference across the shadow boundary.
We have a [proposal](https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/ElementInternalsType/explainer.md) that could address this issue. The solution would look like this:
```js
class MyButton extends HTMLElement {
static buttonActivationBehaviors = true;
#internals;
constructor() {
super();
this.#internals = this.attachInternals();
this.#internals.buttonType = "submit";
}
```
would this work for you?
--
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/814#issuecomment-3392428529
You are receiving this because you are subscribed to this thread.
Message ID: <WICG/webcomponents/issues/814/3392428529@github.com>
Received on Friday, 10 October 2025 21:58:16 UTC