Re: [whatwg/dom] Allow attachShadow on <script> and <style> (Issue #1064)

@bathos I understand that my request is a bit out there and one would need to carefully consider security implications, specifically for `<script>` maybe less so for `<style>`. I also understand that because my request is relatively obscure, while at the same time being costly, it may not get a high priority or even make the bar of "we should do this". The question basically comes down to if the spec is more of a goalpost that one would want to push forward (my direction not necessarily being the first priority obviously) or if it is more of a minimal subset of things that different browser vendors agree on being necessary. I assume you can judge that much better than I could.

@WebReflection maybe I'm missing or misunderstanding something, but my goal is to affect what the element renders as - and from all the documentation I could find, that is still done with shadow dom for custom elements like so: 

```js
    constructor() {
        super();
        shadow = this.attachShadow({mode: 'open'});
    }
```
which still seems to fail for the same reason. Let me know if I overlooked something.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1064#issuecomment-1061386191
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1064/1061386191@github.com>

Received on Tuesday, 8 March 2022 04:11:31 UTC