News for hackers. Stuff that matters.
Re:HTML Web Components by lpedrosa on Monday November 13, 2023 @04:40PM (#38255760)
You are correct. You don't have to use the shadow DOM, when you create a new Custom Element.

The shadow DOM provides two things:

- style encapsulation (as well as `id` attributes) - ability to use `<slot>` for templating

You should use it if you require one of the above or both.

There are no comments on this comment yet.