Ways to make a web component
is there any reason you can't write a web component with a <style> block, a <script> block, and a bunch of html?<p>the wedging everything into js is messy, to say the least. it seems the main benefit is being reusable and tightly scoped, but with randomized class names, you could tightly scope the aforementioned bundle as well. even better would be if html added 'for' attributes to <style> and <script> tags, like labels have, so you could target nodes in the dom by id.<p>perhaps being composable is a bigger challenge, but is it insurmountable with this approach?